Most likely, your attempt at editing google-chrome.desktop didn't work because that file has more than one Exec directiveentry, and the one you changed wasn't the one that is actually used.
Using the Chrome package for Debian from Google's repositoryChrome package for Debian from Google's repository, google-chrome.desktop shows three Exec directivesentries in three distinct sections (groups, in freedesktop.org's nomenclature):
The one with the --incognito option—likely the one you edited—is only executed when you select "New Incognito Window" from a context menu (e.g. the application menuafter right clicking on Chrome's icon in GNOME Activities).
And then edit the Exec directiveentry, at least in the [Desktop Entry] sectiongroup (you may want to keep the other Exec directivesentries aligned to ensure Chrome will behave the same way no matter what menu entry you useused to start it):
Adjust proxyURL and proxyPORT as needed; don't forget to set proxyURL for both the --proxy-server and --host-resolver-rules options.
If you want the default opening action to run Chrome without setting any proxy, you may leave the main [Desktop Entry]'s Exec entry untouched and add an action instead. It requires you to
- add a name for a new action to the
Actionskey in the[Desktop Entry]group; - add a new action group.
[Desktop Entry] ... Actions=new-window;new-private-window;new-proxied-window; ... [Desktop Action new-proxied-window] Name=New Proxied Window Exec=/usr/bin/google-chrome-stable --proxy-server="socks5://proxyURL:proxyPORT" --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE proxyURL" %U "New Proxied Window" will then appear as an option when you right click on Chrome's icon (it may require a logout/login). Note that all the concurrently running instances of Chrome will share the same proxy settings of the first one you opened, unless you start them with the --user-data-dir option.