×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Run from terminal as opposed to "Run Application" dialog

Run from terminal as opposed to "Run Application" dialog

Run from terminal as opposed to "Run Application" dialog

(OP)
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:

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close