Created
October 14, 2023 03:10
-
-
Save ephemient/38c7b930864878a404f838047ad1f929 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Browser chooser | |
Exec=/usr/local/bin/crostini-browser.sh %U | |
MimeType=text/html;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/mailto; | |
Type=Application | |
NoDisplay=true | |
OnlyShowIn=Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
case "$(zenity --question --title=sensible-browser --icon-name=web-browser --no-markup --ellipsize --text="Open $* in..." --switch --extra-button "Chrome OS" --extra-button "Linux")" in | |
"Chrome OS") exec /opt/google/cros-containers/bin/garcon --client --url "$@" ;; | |
"Linux") exec /usr/bin/google-chrome-stable "$@" ;; | |
esac | |
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Default Applications] | |
text/html=crostini-browser.desktop | |
x-scheme-handler/http=crostini-browser.desktop | |
x-scheme-handler/https=crostini-browser.desktop | |
x-scheme-handler/ftp=crostini-browser.desktop | |
x-scheme-handler/mailto=crostini-browser.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment