.xprofile: Set BROWSER to "next"
parent
9b642d61f7
commit
28996e7a5f
20
.xprofile
20
.xprofile
|
@ -2,32 +2,24 @@
|
|||
## This file is sourced by some DM and should not contain any desktop execution.
|
||||
|
||||
## Internet browsers that need X to run.
|
||||
for i in next epiphany qutebrowser chromium icecat conkeror firefox google-chrome; do
|
||||
command -v $i >/dev/null 2>&1 && export BROWSER=$i && break
|
||||
done
|
||||
export BROWSER=next
|
||||
|
||||
## ~/.local/share/applications/mimeapps.list shoud symlink to ~/.config/mimeapps.list.
|
||||
BROWSER_DESKTOP=$BROWSER
|
||||
case $BROWSER in
|
||||
epiphany)
|
||||
BROWSER_DESKTOP=org.gnome.Epiphany;;
|
||||
esac
|
||||
cat<<EOF > ~/.config/mimeapps.list
|
||||
[Added Associations]
|
||||
image/jpeg=sxiv.desktop
|
||||
video/H264=mpv.desktop
|
||||
text/html=$BROWSER_DESKTOP.desktop
|
||||
application/pdf=$BROWSER_DESKTOP.desktop
|
||||
text/html=$BROWSER.desktop
|
||||
application/pdf=$BROWSER.desktop
|
||||
|
||||
[Default Applications]
|
||||
image/jpeg=sxiv.desktop
|
||||
image/png=sxiv.desktop
|
||||
text/html=$BROWSER_DESKTOP.desktop
|
||||
text/html=$BROWSER.desktop
|
||||
application/pdf=zathura.desktop
|
||||
x-scheme-handler/http=$BROWSER_DESKTOP.desktop
|
||||
x-scheme-handler/https=$BROWSER_DESKTOP.desktop
|
||||
x-scheme-handler/http=$BROWSER.desktop
|
||||
x-scheme-handler/https=$BROWSER.desktop
|
||||
EOF
|
||||
unset BROWSER_DESKTOP
|
||||
|
||||
## X resources for xterm.
|
||||
## Some DM merge this automatically; we merge it for TTY logins.
|
||||
|
|
Loading…
Reference in New Issue