Monday 31 March 2014

Always open google chrome in incognito mode in Ubuntu

In Ubuntu, we can modify the google-chrome.desktop file to make google chrome always open in incognito mode. Here is how we can do it
  1. Take a backup of the google-chrome.desktop file. Use the following command in terminal
    sudo cp /usr/share/applications/google-chrome.desktop /usr/share/applications/google-chrome.desktop.backup
  2. Open the google-chrome.desktop file for editing. Use the following command in terminal
    sudo gedit /usr/share/applications/google-chrome.desktop
  3. Find the line(line 108 for me)Exec=/usr/bin/google-chrome-stable %UReplace it with Exec=/usr/bin/google-chrome-stable --incognito %U
Note: If the chrome shortcut is locked in the launcher, you may need to unlock it and restart chrome, before locking it back to the launcher, next time the launcher icon of chrome is clicked, chrome opens in incognito mode.

No comments:

Post a Comment