Link to home
Start Free TrialLog in
Avatar of opike
opike

asked on

In centos, program doesn't launch from the desktop

I have a program (spoon.sh as part of pentaho data integration) that runs fine from a shell window but when I create a launcher icon on the desktop that points to the shell script, that doesn't work.

This is in centos 5.5.
SOLUTION
Avatar of torimar
torimar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Alternatively, you could add the directory to the PATH variable modifying either the /home/user/.bash-profile (if only the current user needs to run the script) or /etc/profile (if all users should be able to do so).
More info here: http://serverfault.com/questions/102932/adding-a-directory-to-path-in-centos/102943#102943

I thought about this before submitting my post, but then I couldn't imagine that a company like Pentaho would not either already modify the path on installing, or else avert the user of the fact that calling their script from outside its directory will not work.
Avatar of opike
opike

ASKER

The java CLASSPATH variable would have to be adjusted, not the PATH variable.
Avatar of opike

ASKER

created stub script