Quote:
Originally Posted by
jlliagre
There were no conditional statements I'm aware of with dtwm.
A simple workaround would be to replace the program you f.exec by a script that checks if the process is already running then only launch it if not the case.
I appreciate the response, but this won't work. Granted, it does solve the problem of checking to see if the program is running, but it will not bring the program to the front if it is already running. That is the problem I'm having. I need to bring the program in front of every active window. The only way I know of to do this is using something like "f.raise" in the dtwm, but I can't "interface" with the dtwm in Java code or a shell script.
For example, in shell script pseudo-code, I could put in something like:
"if [ program is not running ] then [ launch program]"
but in the else statement, I don't know how to do something like (or if it is even possible):
"else [ f.raise program ]".
By the way, I didn't mention in my first post that I'm working in the Common Desktop Environment, although you have probably figured that out already.