I am on Ubuntu desktop 20.04 months ago, while hunting a rogue browser extension, I set the --disable-site-isolation-trials flag for my chromium-browser install.
Problem: many moons later, I cannot figure out how to remove the flag.
Troubleshooting
- Inside chromium I reset all flags and relaunched chromium, but that had no effect
- I checked
/usr/share/applications/chromium-browser.desktop there isn't a flag setting
~/.local/share/applications doesn't have a chromium launcher
- I check my
bashrc and I couldn't find a flags (via alias or exported)
- I tried
export CHROMIUM_USER_FLAGS="--enable-site-isolation-trials" but it is just ignored and the browser continues warning me about --disable-site-isolation-trials
Even more weird -ish:
I ran locate chromium.desktop to find the actual launcher for my chromium
/snap/chromium/2254/bin/chromium.desktop
/snap/chromium/2254/meta/gui/chromium.desktop
/var/lib/snapd/desktop/applications/chromium_chromium.desktop
and confirmed that there are zero flags set via the launcher(s).
root@machine:/snap/bin# grep "Exec=" /snap/chromium/2254/bin/chromium.desktop
Exec=chromium %U
Exec=chromium
Exec=chromium --incognito
Exec=chromium --temp-profile
root@machine:/snap/bin# grep "Exec=" /snap/chromium/2254/meta/gui/chromium.desktop
Exec=chromium %U
Exec=chromium
Exec=chromium --incognito
Exec=chromium --temp-profile
root@machine:/snap/bin# grep "Exec=" /var/lib/snapd/desktop/applications/chromium_chromium.desktop
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium %U
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --incognito
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/chromium_chromium.desktop /snap/bin/chromium --temp-profile
from there I used the command line to reset all pf chromium's flags:
snap set chromium command.chromium=""
It seems to excute successfully, the actual net result.. is nothing.
And when I check htop it appears /snap/chromium/2254/usr/lib/chromium-browser/chrome is being run with several flags --disable-site-isolation-trials --render-process-limit=10 --disable-feature=TFLiteLanguageDetectEnabled
stumped... where are these flags being read from?
Update:
$ sudo snap get chromium command.chromium
chromium
Also I need to correct my comment below... I just noticed that an htop filter STILL shows...
/snap/chromium/2254/usr/lib/chromium-browser/chrome --disable-site-isolation-trials --render-process-limit=10 --disable-feature=TFLiteLanguageDetectEnabled... my apologies, guess I was looking at the wrong line of output..