This post describes a simple method to easily switch in and out of proxies if you use one occasionally.
It’s actually pretty simple. I use Google Chrome as my primary browser, and firefox occasionally for testing websites. So, I simply set firefox to be a browser for browsing sites behind a proxy.
sudo sed -i.bak 's/firefox/proxychains firefox/g' /usr/share/applications/firefox.desktop
In this method, I used proxychains to set the proxy server configuration.
I added a third command in the menu in case I didn’t want to use a proxy.
just edit the
... #Edit the following line to add NewNonProxyWindow; Actions=NewWindow;NewPrivateWindow;NewNonProxyWindow; ... #Add the following lines at the end of the file [Desktop Action NewNonProxyWindow] Name=Open a New Non-Proxy Window Exec=proxychains firefox OnlyShowIn=Unity;