From bf909db5a10e6d69512e0a1a53bf4620ec818c43 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 8 Sep 2021 21:30:06 +0200 Subject: XFCE: fiddle a bit with firefox vs seamonkey default settings --- make_slackware_live.sh | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'make_slackware_live.sh') 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 -- cgit v1.2.3