How to open a .pdf file
Hi folks,
Ubuntu 7.04 lamp server amd64 Fluxbox desktop Rox-filer - File Manager xpdf How to make the .pdf files on the "File Manager" started with mouse pointer clicking on their icons? $ ls -al /home/satimis/.config/rox.sourceforge.net/MIME-types/ Code:
total 16 Code:
#! /bin/sh Tried changing exec "$@" as exec "xpdf" or as exec xpdf w/o result. xpdf started w/o the file evoked/displayed. Pls help. TIA B.R. satimis |
You want something like 'exec xpdf "$@"' but rox has an interface for this - right-click foo.pdf, select "file 'foo.pdf'", select "Set Run Action..."
-- To clarify, rox is replacing the shell process with the application in question (the 'exec') and is passing all individually quoted arguments (such as select files) to the process ("$@") and you just need to declare which application will handle the filetype. |
Quote:
Tks for your advice. Code:
xpdf "#@" I have no solution for .txt file. Only nano, editor, is running on this box Neither Code:
exec nano "$@" Code:
nano "$@" Any advice? TIA satimis |
Yeah, you don't have to have exec, but it's more efficient. As far as text/command-line apps like nano, you'll need to tell rox to open them in a terminal emulator. I use mrxvt and vim which would be 'mrxvt -e vim "$@"', whereas if you used xterm and nano, it would be 'xterm -e nano "$@"'. If you use a different terminal emulator, check it's man page for it's exec argument - it should be '-e' but may be something else.
|
Quote:
I got it. nano runs on xterm, in my case. satimis |
use command evince and file name.
eg: evince xyz |
All times are GMT -5. The time now is 01:42 PM. |