summaryrefslogtreecommitdiff
path: root/platform/debian/mupdf-select-file
blob: 672f6238c6e3615c17a4a4cd691a0110622be0e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ $# -gt 0 ]; then
FILENAME="$@"
else
FILENAME=$(zenity --file-selection --title='Mupdf - Select file to open' --filename=$HOME/ --file-filter='All supported files | *.pdf *.xps *.rels *.oxps *.cbz *.zip *.png *.jpg *.jpeg *.jfif *.jfif-tbnl *.jpe *.tif *.tiff' --file-filter='Portable Document Format (PDF) | *.pdf' --file-filter='OpenXPS (XPS) | *.xps *.rels *.oxps' --file-filter='Comic Book Archive | *.cbz *.zip' --file-filter='Portable Network Graphics (PNG) | *.png' --file-filter='JPEG | *.jpg *.jpeg *.jfif *.jfif-tbnl *.jpe' --file-filter='Tagged Image File Format (TIFF) | *.tif *.tiff')
fi

if [ $? -eq 0 ]; then
	mupdf "$FILENAME"
fi