mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2024-11-07 08:44:07 +01:00
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:
parent
02f255e4aa
commit
8c966de53f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user