X
Tap here to go to the mobile version of the site.

Support Forum

How to change Windows short cut to open private browsing?

Posted

I would like to change the short cut "C:\Program Files\Mozilla Firefox\firefox.exe" to open Firefox in private browsing mode all the time. Though "firefox -private-window" works when I do it on Run (Windows + R), I would like to be able to open Firefox by clicking a short cut.

I would like to change the short cut "C:\Program Files\Mozilla Firefox\firefox.exe" to open Firefox in private browsing mode all the time. Though "firefox -private-window" works when I do it on Run (Windows + R), I would like to be able to open Firefox by clicking a short cut.
Attached screenshots

Chosen solution

The -private-window switch needs to be outside the quotes that surround the path to the Firefox program.

  • "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window
Read this answer in context 3

Additional System Details

Installed Plug-ins

  • Intel web components updater - Installs and updates the Intel web components
  • 20-20 3D Viewer for IKEA - Mozilla Plug-In v5.0.94.1
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.9
  • GEPlugin
  • Google Update
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 11.25.2 for Mozilla browsers
  • Office Authorization plug-in for NPAPI browsers
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • NPWLPG
  • Picasa plugin
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • RealJukebox Netscape Plugin
  • RealPlayer Download Plugin
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • Shockwave Flash 19.0 r0
  • 5.1.40728.0
  • WordCaptureX: extract text from Chrome browser
  • iTunes Detector Plug-in

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; rv:42.0) Gecko/20100101 Firefox/42.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
16389 solutions 147861 answers

Helpful Reply

You can append -private-window to the target field in the shortcut, leave a space as a separator before the command.

You can append -private-window to the target field in the shortcut, leave a space as a separator before the command. *https://developer.mozilla.org/Command_Line_Options

Question owner

I have tried "C:\Program Files\Mozilla Firefox\firefox.exe -private-window". When I click on on Apply, it comes up with error.

I have tried "C:\Program Files\Mozilla Firefox\firefox.exe -private-window". When I click on on Apply, it comes up with error.
cor-el
  • Top 10 Contributor
  • Moderator
16389 solutions 147861 answers

Chosen Solution

The -private-window switch needs to be outside the quotes that surround the path to the Firefox program.

  • "C:\Program Files\Mozilla Firefox\firefox.exe" -private-window
The -private-window switch needs to be outside the quotes that surround the path to the Firefox program. *"C:\Program Files\Mozilla Firefox\firefox.exe" -private-window

Question owner

Thanks! It works.

Thanks! It works.

Question owner

By the way, how can I have the Firefox always opened in private browsing mode when I click on a hyperlink on email or other document?

By the way, how can I have the Firefox always opened in private browsing mode when I click on a hyperlink on email or other document?
cor-el
  • Top 10 Contributor
  • Moderator
16389 solutions 147861 answers

You can use an extension to get Private Browsing mode support per tab.

This extension supports this feature via a pref that you can inspect and modify on the about:config page.

  • extensions.privateTab.allowOpenExternalLinksInPrivateTabs

There are more choices that you can set via prefs.

You can use an extension to get Private Browsing mode support per tab. *Private Tab: https://addons.mozilla.org/firefox/addon/private-tab/ *Private Browsing mode tabs get a dashed underline *You can toggle Private Browsing mode off/on via the right-click context menu of a tab This extension supports this feature via a pref that you can inspect and modify on the <b>about:config</b> page. *extensions.privateTab.allowOpenExternalLinksInPrivateTabs There are more choices that you can set via prefs.

Question owner

What is the difference between setting browser.privatebrowsing.autostart and setting the short cut with -private-window?

What is the difference between setting browser.privatebrowsing.autostart and setting the short cut with -private-window?
cor-el
  • Top 10 Contributor
  • Moderator
16389 solutions 147861 answers

I don't think that there is much difference, but if the startup pref is set then you always start in PB mode with that profile, so this should work with external links as well. External links are started via the command as set in the Windows registry for that file extension and that command doesn't include the -private-window command line switch.

I don't think that there is much difference, but if the startup pref is set then you always start in PB mode with that profile, so this should work with external links as well. External links are started via the command as set in the Windows registry for that file extension and that command doesn't include the -private-window command line switch.

Question owner

It sounds like the autostart which is much simpler will do everything, saving the change of commandline shortcut and adding of extension altogether.

It sounds like the autostart which is much simpler will do everything, saving the change of commandline shortcut and adding of extension altogether.

Question owner

Is it correct that the private browsing mode won't bring up the home page?

Is it correct that the private browsing mode won't bring up the home page?
cor-el
  • Top 10 Contributor
  • Moderator
16389 solutions 147861 answers

In PB mode you may be getting the about:privatebrowsing page instead of the home page. You can click the toolbar home button to open the home page.

In PB mode you may be getting the about:privatebrowsing page instead of the home page. You can click the toolbar home button to open the home page.