mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2024-11-07 08:44:07 +01:00
Merge branch 'feature/KASM-3715-update-chrome-mime-launchers' into 'develop'
KASM-3715 update the pathing for the default browser launcher on chromium... Closes KASM-3715 See merge request kasm-technologies/internal/workspaces-images!99
This commit is contained in:
commit
d2a4fa8e53
@ -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
|
||||
|
@ -80,7 +80,7 @@ if [[ "${DISTRO}" == @(centos|oracle8|rockylinux9|rockylinux8|oracle9|almalinux9
|
||||
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
|
||||
|
@ -114,7 +114,7 @@ if [[ "${DISTRO}" == @(centos|oracle8|rockylinux9|rockylinux8|oracle9|almalinux9
|
||||
application/x-extension-xht=${REAL_BIN}.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