You are not logged in.
Is this possible?
I've come up with a very primitive way to change FD.O file associations in Rox - basically i have a script in the Send To menu folder that runs 'xterm -e mimeopen -d' on whatever file it is, giving you a terminal with a choice of applications. I just have two problems:
1. After you choose the application, the terminal persists, and hitting ctrl-C in it will of course quit the application it launched.
2. More importantly, the terminal exits on its own immediately after executing whatever application, which is ugly and generally not good.
So ideally I'd like to:
- Launch the terminal and have it display the 'mimeopen -d' text.
- Execute the chosen application on the file, then disown the application's process.
- Kill the terminal.
Is this possible using just a bash script, or would I have to hack around with mimeopen itself?
Last edited by Gullible Jones (2010-12-31 00:02:56)
Offline
1. Try
nohup xterm -e mimeopen -d .xinitrc &
2. Use '-hold'
xterm -hold -e htop
Last edited by karol (2010-12-31 02:11:21)
Offline
Hmm, nohup is almost what I'm looking for. Ideally I'd like the xterm to exit after launching the application, but nohup will do for now... Thanks.
Offline