KASM-3715 update the pathing for the default browser launcher on chromium based browsers so we get the same bypasses and specifically do not see the gnome-keyring if installed

This commit is contained in:
ryan.kuba 2023-01-21 19:58:41 -08:00
parent 02f255e4aa
commit 8c966de53f
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ EOL
chmod +x /usr/bin/brave-browser
cp /usr/bin/brave-browser /usr/bin/brave
sed -i 's@exec -a "$0" "$HERE/brave" "$\@"@@g' /usr/bin/x-www-browser
sed -i 's@exec -a "$0" "$HERE/brave-browser" "$\@"@@g' /usr/bin/x-www-browser
cat >>/usr/bin/x-www-browser <<EOL
exec -a "\$0" "\$HERE/brave" "${CHROME_ARGS}" "\$@"
EOL

View File

@ -81,7 +81,7 @@ if [[ "${DISTRO}" == @(centos|oracle7|oracle8|opensuse) ]]; then
application/x-extension-xht=google-chrome.desktop
EOF
else
sed -i 's@exec -a "$0" "$HERE/chrome" "$\@"@@g' /usr/bin/x-www-browser
sed -i 's@exec -a "$0" "$HERE/google-chrome" "$\@"@@g' /usr/bin/x-www-browser
cat >>/usr/bin/x-www-browser <<EOL
exec -a "\$0" "\$HERE/chrome" "${CHROME_ARGS}" "\$@"
EOL

View File

@ -101,7 +101,7 @@ if [[ "${DISTRO}" == @(centos|oracle7|oracle8|opensuse) ]]; then
application/x-extension-xht=chromium-browser.desktop
EOF
else
sed -i 's@exec -a "$0" "$HERE/chromium" "$\@"@@g' /usr/bin/x-www-browser
sed -i 's@exec -a "$0" "$HERE/chromium-browser" "$\@"@@g' /usr/bin/x-www-browser
cat >>/usr/bin/x-www-browser <<EOL
exec -a "\$0" "\$HERE/chromium" "${CHROME_ARGS}" "\$@"
EOL