Hi,
I am trying to modify the Firefox desktop icon so that it opens
an incognito window by default.
What I've done is changing /usr/share/applications/firefox.desktop:
- Exec=firefox %u
+ Exec=firefox -private-window %u
I also created a desktop file in ~/.local/share/applications, but
that too didn't work.
On 17 Jun 2024, at 20:45, Pranjal Singh <[email protected]> wrote:
Hi,
I am trying to modify the Firefox desktop icon so that it opens
an incognito window by default.
...
- Exec=firefox %u
+ Exec=firefox -private-window %u
It runs regular Firefox after adding the -private-window flag.
To get a MWE, I made these changes later:
- Exec=firefox -private-window %u
- StartupWMClass=firefox
+Exec=gnome-calculator
On 17 Jun 2024, at 20:45, Pranjal Singh <[email protected]> wrote:
Hi,
I am trying to modify the Firefox desktop icon so that it opens
an incognito window by default.
...
- Exec=firefox %u
+ Exec=firefox -private-window %u
Assuming that's not a typo, please try:
--private-window
On Tue, Jun 18, 2024 at 12:23 AM Gareth Evans <[email protected]> wrote:
On 17 Jun 2024, at 20:45, Pranjal Singh <[email protected]> wrote:
I am trying to modify the Firefox desktop icon so that it opens
an incognito window by default.
...
- Exec=firefox %u
+ Exec=firefox -private-window %u
Assuming that's not a typo, please try:
--private-window
(NB two hyphens at the beginning)
This works for me on Mate.
According to Mozilla documentation at <https://wiki.mozilla.org/Firefox/CommandLineOptions>, it is one
hyphen, not two.
On Thu, Jun 20, 2024 at 22:56:33 +0530, Pranjal Singh wrote:
It runs regular Firefox after adding the -private-window flag.
To get a MWE, I made these changes later:
- Exec=firefox -private-window %u
- StartupWMClass=firefox
+Exec=gnome-calculator
Did you see Gareth's reply at <https://lists.debian.org/debian-user/2024/06/msg00432.html>?
It's supposed to be --private-window with two leading hyphens, not
one, he said.
On Tue, Jun 18, 2024 at 01:38:00AM +0100, Gareth Evans wrote:
On 17 Jun 2024, at 20:45, Pranjal Singh
<[email protected]> wrote:
Hi,
I am trying to modify the Firefox desktop icon so that it opens
an incognito window by default.
...
- Exec=firefox %u
+ Exec=firefox -private-window %u
Assuming that's not a typo, please try:
--private-window
Yep. Asking firefox itself (firefox --help) confirms that the
option wants two dashes.
Assuming that's not a typo, please try:
--private-window
Yep. Asking firefox itself (firefox --help) confirms that the
option wants two dashes.
See https://wiki.mozilla.org/Firefox/CommandLineOptions#-private-window
or just try it! It works pefectly well with a single hyphen.
This is (one) reason why using undocumented features is a Bad Thing™.
On 20 Jun 2024, at 20:52, [email protected] wrote:
Greg Wooledge <[email protected]> wrote:
On Thu, Jun 20, 2024 at 22:56:33 +0530, Pranjal Singh wrote:
It runs regular Firefox after adding the -private-window flag.
To get a MWE, I made these changes later:
- Exec=firefox -private-window %u
- StartupWMClass=firefox
+Exec=gnome-calculator
Did you see Gareth's reply at
<https://lists.debian.org/debian-user/2024/06/msg00432.html>?
It's supposed to be --private-window with two leading hyphens, not
one, he said.
He was wrong according to Mozilla's documentation
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 794 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 136:40:53 |
| Calls: | 13,179 |
| Calls today: | 2 |
| Files: | 15,481 |
| Messages: | 6,578,978 |
| Posted today: | 2 |