LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-10-2008, 12:12 PM   #1
emp1953
LQ Newbie
 
Registered: Nov 2007
Posts: 18

Rep: Reputation: 0
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
 
Old 11-11-2008, 10:17 AM   #2
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
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
 
Old 11-11-2008, 03:35 PM   #3
emp1953
LQ Newbie
 
Registered: Nov 2007
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 11-11-2008, 08:35 PM   #4
soppy
Member
 
Registered: Mar 2008
Location: In your head!
Distribution: Arch Linux
Posts: 165
Blog Entries: 1

Rep: Reputation: 28
it could be:

>gnome-terminal /path/to/executable

or just try:

>xterm /path/to/executable
 
Old 11-11-2008, 09:49 PM   #5
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,031

Rep: Reputation: 160Reputation: 160
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....
 
Old 11-12-2008, 01:17 AM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 12,698

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
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
 
Old 11-13-2008, 11:47 AM   #7
emp1953
LQ Newbie
 
Registered: Nov 2007
Posts: 18

Original Poster
Rep: Reputation: 0
File is executable already

Quote:
Originally Posted by John VV View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie - Creating drive icon on desktop (SUSE Gnome) DB9 Linux - Desktop 1 01-07-2008 05:17 AM
Gnome - how to remove shortcut link icon from desktop ncbillp Linux - Desktop 3 05-01-2007 09:51 AM
How can I change the icon of a desktop shortcut nightrider Linux - Newbie 1 06-15-2006 07:30 PM
Creating a shortcut to desktop yenonn Linux - General 11 08-12-2003 04:29 PM
desktop icon or menu shortcut for phoenix? romcgill Linux - General 4 05-25-2003 08:28 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration