LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating desktop icon shortcut using gnome (https://www.linuxquestions.org/questions/linux-newbie-8/creating-desktop-icon-shortcut-using-gnome-682402/)

emp1953 11-10-2008 12:12 PM

Creating desktop icon shortcut using gnome
 
Running Redhat 4.2.1 with gnome environment
I have created a desktop icon using create launcher.

I wrote a stand alone software application that does not have a GUI.

During development it was run in a terminal window from the command line, using an alias named "runit". Which points to /home/yada_yada/bin/executable.

No matter how I configure the launcher this will not run.
There is a checkbox for "run in a terminal". I expected that checking that would bring up a terminal and run the executable in that terminal just as if I had done it from a command line. Not so.

A terminal window (that doesn't look at all like my normal terminal window) flashes momentarily on the screen then disappears, my process never appears when doing a 'ps -elf'.

Any ideas about what is going on.

Thanks

emp

soppy 11-11-2008 10:17 AM

try having puting either "terminal" or "xterm" before having the options of WHAT needs to be run. so if you want to run something called "test" in terminal located in /usr/bin, you'd type
Code:

terminal /usr/bin/test

emp1953 11-11-2008 03:35 PM

system doesn't recognize terminal
 
My linus O.S. does not recognize terminal at the command line.

I should just be able to do this at the command line to check if it works, right?

> terminal /path/executable

the error says that terminal is not recognized.

Are there any other suggestions? Someone must have successfully implemented something like this before.

Thanks

emp

soppy 11-11-2008 08:35 PM

it could be:

>gnome-terminal /path/to/executable

or just try:

>xterm /path/to/executable

mrclisdue 11-11-2008 09:49 PM

Have you tried 'sh /path/to/executable' as the launcher command? I know that, back in the day, when I was using gnome and trying to have certain programs run at startup, I sometimes had to use the 'sh'.

Then again, sometimes I didn't, and I was never able to figure out when I had to, and when I didn't have to....

John VV 11-12-2008 01:17 AM

with red hat and fedora the " sh" should work

but why not use chmod to make the file executable
su -
cd /to/file
chmod +x file name

emp1953 11-13-2008 11:47 AM

File is executable already
 
Quote:

Originally Posted by John VV (Post 3339091)
with red hat and fedora the " sh" should work

but why not use chmod to make the file executable
su -
cd /to/file
chmod +x file name


I need the process to come up in a terminal window, there are outputs that must be visible to the user.

I just wanted the implement an icon so the user wouldn't have to navigate around a directory structure in a terminal window then manually input the executable name.


All times are GMT -5. The time now is 04:04 PM.