Ubuntu – How to start a private session of Firefox

firefoxlubuntu

I'm new to Lubuntu. In Windows 7, I could right click the pinned Firefox icon and an option saying "Start Firefox in private mode" would be shown. Is there something similar for Lubuntu?

What I'm doing is running $ firefox -private in the terminal. But I'd prefer to have a shortcut or another way that doesn't need to keep the terminal opened, waiting for me to stop using Firefox.

How can I have a button/shortcut where I'll simply click and open a private session of Firefox without opening a normal session of Firefox first?

(I do not want to make the private mode the default behaviour. That is, I want Firefox to open by default in normal mode, but sometimes I want be able to start Firefox only in private mode)


Reason for Why I want this: I have many opened tabs in Firefox and when I close Firefox, they are saved and open again automatically when I start Firefox in normal mode. But sometimes I'm in a hurry and just want to search one thing, that's when I don't want Firefox to open all these tabs (my computer is old), and starting it in private mode allows me to only search for the thing I want and then close Firefox without losing the stored tabs. I don't want to save them all to bookmarks, because they change a lot and therefore I'd need to store and delete them all the time. Allowing Firefox to save them automatically is less of a hassle, and opening only in private mode avoids this problem.

Best Answer

cp /usr/share/applications/firefox.desktop \
~/.local/share/applications/firefox-incognito.desktop

add --private-window to Exec=

add Incognito to Name=

you should now have a new launcher icon

Related Question