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:
Justin Travis 2023-03-23 05:16:18 +00:00
commit d2a4fa8e53
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

@ -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

View File

@ -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