Examples:
Code: Select all
showme *.jpg
showme --ask-default ./Pictures/*.jpeg *-report.odt
showme --ask *.jpeg *.tif `find ./ -name 'annotation*.pdf' -print 2> /dev/null`
Showme is a fork of the mimeopen perl script. The major improvements over mimeopen are:
- The name showme is far more memorable.
- The ability to handle an arbitrary number of files of differing types.
- Can easily pull files from diverse directories/file systems.
The program functions by consulting a mimetype database already existing on your computer to determine valid programs to open a particular file type. The visualization program is then called based on settings in the .desktop file for each program.
For example, the Evince reader .desktop file (/usr/share/applications/org.gnome.Evince.desktop) informs the program that it can handle a string of files on the command line because the Exec=evince %U is specified in the desktop file. However, this is incorrect. It can only handle one file at a time. Thus, to work properly you will need to change this line to Exec=evince %f. If you do not change this Exec line, Evince will pretend to open multiple files with a single call, but you will only see the first document. Most programs are going to work properly, but if one program doesn't work properly in this way, you probably need to edit the desktop file, or possibly eliminate it from the mimeinfo list (varies by Linux distro).
It's a perl script. You can download here. Simply chmod it to make it executable, and copy to /usr/local/bin/showme.