This is an interesting phenomena that I've seen on a few programs. Basically, if you run these programs from the terminal, they'll run fine, but they won't run if you run them with the "Run Application" dialog (Alt+F2), or vice-versa, they'll run fine from the Run Application but error-out at the terminal.
Case in point: Shareaza (a Windows P2P program, running under Wine). The only command I know works to start the program peacefully is:
But, this command only works when I push Alt+F2 and enter it into the dialog. If I go into a terminal (gnome-terminal) and enter that command, Shareaza will start enough to open its "remote control" window, but then it stops responding.
I first discovered this because I was trying to write a Perl script which would run Shareaza and relaunch it if the program ever crashed (which it does quite frequently), but since the Perl script is "terminal-based", its attempts to execute a command are run from a terminal environment, which won't run Shareaza.
Anybody know what the difference is? Why would a program only run from the run dialog but not through the terminal? Are there differences in environment variables?
-------------
Cuvou.com | My personal homepage
Project Fearless | My web blog
Case in point: Shareaza (a Windows P2P program, running under Wine). The only command I know works to start the program peacefully is:
Code:
wine "C:\\Program Files\\Shareaza\\Shareaza.exe" -tray
But, this command only works when I push Alt+F2 and enter it into the dialog. If I go into a terminal (gnome-terminal) and enter that command, Shareaza will start enough to open its "remote control" window, but then it stops responding.
I first discovered this because I was trying to write a Perl script which would run Shareaza and relaunch it if the program ever crashed (which it does quite frequently), but since the Perl script is "terminal-based", its attempts to execute a command are run from a terminal environment, which won't run Shareaza.
Anybody know what the difference is? Why would a program only run from the run dialog but not through the terminal? Are there differences in environment variables?
-------------
Cuvou.com | My personal homepage
Project Fearless | My web blog