LinuxQuestions.org
Visit Jeremy's Blog.
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 01-22-2009, 02:25 PM   #1
action_owl
Member
 
Registered: Jan 2009
Location: 127.0.0.1
Distribution: Fedora, CentOS, NetBSD
Posts: 115

Rep: Reputation: 17
./program into shortcut


in order to run an application called Processing, I have to navigate to the folder, open a terminal and then type ./processing and it starts, how can I make a icon that does this for me automatically? would it be a shell script? and how are icons set up in linux?
thanks
 
Old 01-22-2009, 02:28 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
rightclick on the desktop=> create launcher
You can put the full path to the file
/foo/foo/processing
or copy processing to /usr/local/bin/
 
Old 01-22-2009, 02:32 PM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
hey owl,

Yes, I'd write a shell script.

In a text editor, write this, and then save it to your Desktop. (with a name like myshortcut or something more appropriate.)

Code:
#!/bin/sh
cd /enter/the/directory/path/here
./processing &
then right click on the file on your desktop and pimp out the icon, etc. There are a bunch of options. MAKE SURE you set execute permission on it. Then you should be able to just run the script by double clicking it on your desktop.
 
Old 01-22-2009, 02:34 PM   #4
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by repo View Post
rightclick on the desktop=> create launcher
You can put the full path to the file
/foo/foo/processing
or copy processing to /usr/local/bin/

This would usually work, but I have used awful executables in the past that NEED to be run from their directory because of the way they were coded, so a launcher might not necessarily do the job. From what was said above, it sounded to me like he might be dealing with one such nasty piece of software.
 
  


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
Enquires on shortcut on the program after installing vitalstrike82 SUSE / openSUSE 1 03-25-2008 03:06 PM
Simple X keyboard shortcut program bhepple Linux - Software 2 08-01-2006 11:13 PM
No program shortcut for installed applications? fleeced Linux - Newbie 5 08-14-2004 05:09 PM
How to Shortcut to program with X? dolvmin Linux - Software 2 08-05-2004 09:58 PM
How to make shortcut to program in KDE jbeedham Linux - Newbie 4 07-25-2003 10:25 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration