UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Last edited by slakmagik; 08-16-2007 at 01:26 PM.
Reason: occurred to me to say what rox was wanting to do
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.
Hi digiot,
Tks for your advice.
Code:
xpdf "#@"
can do the job. "exec" can be left out.
I have no solution for .txt file. Only nano, editor, is running on this box
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.