From 44aef5ee78834c7a6ec4d25a2ee6c42f8754dd14 Mon Sep 17 00:00:00 2001 From: David Todd Date: Fri, 13 Dec 2019 14:28:24 -0600 Subject: [PATCH] Add mappings for default web browser --- home/.config/mimeapps.list | 53 +++++++++++++++++++ .../userapp-google-chrome.desktop | 8 +++ install.sh | 2 + 3 files changed, 63 insertions(+) create mode 100644 home/.config/mimeapps.list create mode 100644 home/.local/share/applications/userapp-google-chrome.desktop diff --git a/home/.config/mimeapps.list b/home/.config/mimeapps.list new file mode 100644 index 0000000..8ada8b6 --- /dev/null +++ b/home/.config/mimeapps.list @@ -0,0 +1,53 @@ +[Default Applications] +x-scheme-handler/http=userapp-google-chrome.desktop +x-scheme-handler/https=userapp-google-chrome.desktop +x-scheme-handler/ftp=userapp-google-chrome.desktop +x-scheme-handler/chrome=userapp-google-chrome.desktop +text/html=userapp-google-chrome.desktop +application/x-extension-htm=userapp-google-chrome.desktop +application/x-extension-html=userapp-google-chrome.desktop +application/x-extension-shtml=userapp-google-chrome.desktop +application/xhtml+xml=userapp-google-chrome.desktop +application/x-extension-xhtml=userapp-google-chrome.desktop +application/x-extension-xht=userapp-google-chrome.desktop +image/jpeg=viewnior.desktop;gpicview.desktop; +image/png=viewnior.desktop;gpicview.desktop; +text/plain=gvim.desktop +x-scheme-handler/mailto=google-chrome.desktop +message/rfc822=userapp-Thunderbird.desktop +application/pdf=epdfview.desktop +application/x-bittorrent=deluge.desktop +x-scheme-handler/webcal=google-chrome.desktop +x-scheme-handler/postman=Postman.desktop +x-scheme-handler/rdp=org.remmina.Remmina.desktop +x-scheme-handler/spice=org.remmina.Remmina.desktop +x-scheme-handler/vnc=org.remmina.Remmina.desktop +x-scheme-handler/remmina=org.remmina.Remmina.desktop +application/x-remmina=org.remmina.Remmina.desktop +text/x-python=gvim.desktop + +[Added Associations] +x-scheme-handler/http=userapp-google-chrome.desktop; +x-scheme-handler/https=userapp-google-chrome.desktop; +x-scheme-handler/ftp=userapp-google-chrome.desktop; +x-scheme-handler/chrome=userapp-google-chrome.desktop; +text/html=userapp-google-chrome.desktop; +application/x-extension-htm=userapp-google-chrome.desktop; +application/x-extension-html=userapp-google-chrome.desktop; +application/x-extension-shtml=userapp-google-chrome.desktop; +application/xhtml+xml=userapp-google-chrome.desktop; +application/x-extension-xhtml=userapp-google-chrome.desktop; +application/x-extension-xht=userapp-google-chrome.desktop; +image/jpeg=viewnior.desktop;gpicview.desktop; +image/png=viewnior.desktop;gpicview.desktop; +text/plain=gvim.desktop;mousepad.desktop; +x-scheme-handler/mailto=userapp-Thunderbird.desktop; +message/rfc822=userapp-Thunderbird.desktop; +application/pdf=epdfview.desktop; +application/x-bittorrent=deluge.desktop; +x-scheme-handler/rdp=org.remmina.Remmina.desktop; +x-scheme-handler/spice=org.remmina.Remmina.desktop; +x-scheme-handler/vnc=org.remmina.Remmina.desktop; +x-scheme-handler/remmina=org.remmina.Remmina.desktop; +application/x-remmina=org.remmina.Remmina.desktop; +text/x-python=gvim.desktop; diff --git a/home/.local/share/applications/userapp-google-chrome.desktop b/home/.local/share/applications/userapp-google-chrome.desktop new file mode 100644 index 0000000..099a439 --- /dev/null +++ b/home/.local/share/applications/userapp-google-chrome.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +NoDisplay=true +Exec=/usr/bin/google-chrome-stable %u +Name=Google Chrome +Comment=Custom definition for Google Chrome diff --git a/install.sh b/install.sh index d9d7ddd..7384554 100755 --- a/install.sh +++ b/install.sh @@ -81,6 +81,8 @@ symlink $basedir/home/gitconfig $HOME/.gitconfig symlink $basedir/home/Xresources $HOME/.Xresources symlink $basedir/home/terminator $HOME/.config/terminator symlink $basedir/home/stalonetrayrc $HOME/.stalonetrayrc +symlink $basedir/home/.config $HOME/.config +symlink $basedir/home/.local $HOME/.local echo "Installing VIM Pathogen..." mkdir -p $HOME/.vim/autoload $HOME/.vim/bundle