QUOTE(desertrat @ Mar 24 2006, 03:03 AM)
QUOTE(gromituk @ Mar 24 2006, 10:16 AM)
I suppose you could map the key to a shell script which does a "ps -A|grep <name>" to see if a copy of the application is already running, and start it if not. Don't know how to bring it to the front though, but having the PID could be useful here! More rigorous would be for it to get the PID of the app when it starts it up and store it in a file somewhere.
That was exactly what I had been thinking, and like you I don't know how to bring an app to front either

But I was hoping there was a more elegant solution (ie one that doesn't require so much hard work). The WMs certainly knows what apps are running and are able to "bring it to front", for instance when you Alt-TAB to cycle through windows. If I can hook into that mechanism then I'll be all set. Any ideas?
-- cheers
I was thinking that the Aterm launcher (beside the start menu on the taskbar, in a default install of pdaXrom 1.1.0beta1) seems to be able to keep track of this. It even seems to be able to toggle the window on and off.
The file is /usr/share/applications/mb-launcher-term.desktop, and it contains this noteable line:
CODE
Exec=mb-applet-launcher -o -1 --desktop /usr/share/applications/aterm.desktop
I wonder if you can leverage off of that?
Armagon