summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-09-08 21:30:06 +0200
committer Eric Hameleers <alien@slackware.com>2021-09-08 21:30:06 +0200
commitbf909db5a10e6d69512e0a1a53bf4620ec818c43 (patch)
treec92b9768dd4d769cf6b2fa73adc5dcf1ea8b9392 /make_slackware_live.sh
parent47ec8a8d3e3627e581181e837bf0d8b9bd5b71c4 (diff)
downloadliveslak-bf909db5a10e6d69512e0a1a53bf4620ec818c43.tar.gz
liveslak-bf909db5a10e6d69512e0a1a53bf4620ec818c43.tar.xz
XFCE: fiddle a bit with firefox vs seamonkey default settings
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh28
1 files changed, 26 insertions, 2 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index c77cead..d393f06 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -2154,12 +2154,36 @@ for SKEL in ${LIVE_TOOLDIR}/skel/skel*.txz ; do
done
if [ "$LIVEDE" = "XFCE" ]; then
- # Since the XFCE ISO no longer has xpdf, use Firefox as the PDF viewer:
+ # Since the XFCE ISO no longer has xpdf, use Firefox as the PDF viewer
+ # if that is present:
mkdir -p ${LIVE_ROOTDIR}/etc/skel/.config
- cat << EOF > ${LIVE_ROOTDIR}/etc/skel/.config/mimeapps.list
+ if [ -f ${LIVE_ROOTDIR}/usr/bin/firefox ]; then
+ cat << EOF > ${LIVE_ROOTDIR}/etc/skel/.config/mimeapps.list
[Default Applications]
application/pdf=mozilla-firefox.desktop
EOF
+ else
+ # If firefox is not present, we hope that seamonkey is there;
+ # you won't have a PDF viewer in that case unfortunately, but you could
+ # download https://github.com/IsaacSchemm/pdf.js-seamonkey :
+ cat << EOF > ${LIVE_ROOTDIR}/etc/skel/.config/mimeapps.list
+[Default Applications]
+x-scheme-handler/http=seamonkey.desktop
+x-scheme-handler/https=seamonkey.desktop
+x-scheme-handler/ftp=seamonkey.desktop
+x-scheme-handler/chrome=seamonkey.desktop
+x-scheme-handler/mailto=seamonkey-mail.desktop
+text/html=seamonkey.desktop
+
+[Added Associations]
+x-scheme-handler/http=xfce4-web-browser.desktop;seamonkey.desktop;
+x-scheme-handler/https=xfce4-web-browser.desktop;seamonkey.desktop;
+x-scheme-handler/ftp=seamonkey.desktop;
+x-scheme-handler/chrome=seamonkey.desktop;
+x-scheme-handler/mailto=seamonkey.desktop;
+text/html=seamonkey.desktop;
+EOF
+ fi
fi