File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,16 @@ if does_bin_exist 'gnome-disk-image-mounter'; then
3838 DISK_IMAGE_MOUNTER_LAUNCHER=' gnome-disk-image-mounter.desktop'
3939fi
4040
41+ # Document Viewer
42+ DOCUMENT_VIEWER_LAUNCHER=' '
43+ if does_bin_exist ' org.gnome.Papers' ; then
44+ DOCUMENT_VIEWER_LAUNCHER=' org.gnome.Papers.desktop'
45+ elif does_bin_exist ' org.gnome.Evince' ; then
46+ DOCUMENT_VIEWER_LAUNCHER=' org.gnome.Evince.desktop'
47+ elif does_bin_exist ' evince' ; then
48+ DOCUMENT_VIEWER_LAUNCHER=' evince.desktop'
49+ fi
50+
4151# Email Client
4252EMAIL_CLIENT_LAUNCHER=' '
4353if does_bin_exist ' com.github.vladimiry.ElectronMail' ; then
172182
173183# Update the associations
174184
185+ for DOCUMENT_TYPE in ' pdf' ; do
186+ update_mimetype_association " application/${DOCUMENT_TYPE} " " ${DOCUMENT_VIEWER_LAUNCHER} "
187+ done
188+
175189for IMAGE_TYPE in " bmp" " jpeg" " png" " webp" ; do
176190 update_mimetype_association " image/${IMAGE_TYPE} " " ${IMAGE_VIEWER_LAUNCHER} "
177191done
You can’t perform that action at this time.
0 commit comments