Solved

In centos, program doesn't launch from the desktop

Posted on 2010-11-19
5
1,186 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:opike
  • 3
  • 2
5 Comments
 
LVL 35

Assisted Solution

by:torimar
torimar earned 500 total points
ID: 34177898
It should work, though. Hence we must assume that you made a mistake while creating the launcher.
Please follow the instructions given here:
http://www.linuxtopia.org/online_books/centos_linux_guides/centos_linux_step_by_step_guide/s1-desktop-desktop.html
and make sure the full path to your script is specified. Also tick the "Run in terminal" box.
0
 

Accepted Solution

by:
opike earned 0 total points
ID: 34178157
I discovered in a terminal window that I was getting "class not found" errors when I would try to run the shell script from another directory other than the directory in which the shell script resided. So I created a stub script that would cd into the directory first and then run the original script.
0
 
LVL 35

Expert Comment

by:torimar
ID: 34178551
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.
0
 

Author Comment

by:opike
ID: 34199095
The java CLASSPATH variable would have to be adjusted, not the PATH variable.
0
 

Author Closing Comment

by:opike
ID: 34224639
created stub script
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now