Douglas Royds wrote:
Nick Rout wrote:
On Thu, Sep 18, 2008 at 9:50 AM, Douglas Royds
<[EMAIL PROTECTED]> wrote:
What I would like is to map Alt-F2 to some tool that:
1. Pops up a micro-Bash command line window
2. I enter some Bash command to launch a GUI app and press Enter
3. The command is launched
4. The pop-up box (or whatever) goes away, leaving the child command
running
But you could map Alt-F2 to a fixed size x-term window, make sure you
add & to the end of the command line and then close it.
This almost (but not quite) works:
#!/bin/bash
read -e command
${command} &
The problem is that when the parent script exits, it takes the GUI app
out with it. If I don't put in the &, the GUI app continues just fine,
but I'm left with a terminal window lurking around.
For the record, this is a great deal closer:
read -e command
socketname=mktemp
dtach -n socketname ${command}
Launch the pop-up window with:
gnome-terminal --geometry=60x2 --title="Run Application" -e scriptname
Hokay. That kind-of works, but readline doesn't know that it's looking
for an application name for the first parameter.
Douglas.
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================