View Single Post
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#82
Originally Posted by qole View Post
My second parameter used to be: 'sudo debian hilda xephwm LXDE startlxde1'

For this version of the app, I had to create a script (/usr/bin/debwm) with this one line in it.

Other than that, we seem to have a winner! No more annoying error messages! (also, the window isn't blank white anymore; I like that)
Redownload it - now takes multiple commands as the second argument. The only downside is that the first has to be with path like that:

Code:
hostwin AppName "/usr/bin/sudo debian hilda xephwm LXDE startlxde1" "What should be written inside"
It even took less code than the previous
Code:
- string[] buf = new string[1];
-
- buf[0] = filename;
- Process.spawn_async( null, buf, null, SpawnFlags.DO_NOT_REAP_CHILD, null, out this.pid );
+ Process.spawn_async( null, filename.split(" "), null, SpawnFlags.DO_NOT_REAP_CHILD, null, out this.pid );
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following User Says Thank You to Bundyo For This Useful Post: