LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-04-2009, 03:29 PM   #1
baldurpet
Member
 
Registered: Dec 2008
Location: Iceland
Distribution: Ubuntu, freeBSD
Posts: 110

Rep: Reputation: 15
Using a launcher to run a file


I want to either make a launcher in the panel or an icon in the main menu which opens this folder /usr/local/bin/bash/words.

The file words is run by writing ./words in a terminal where the pwd is /usr/local/bin/bash, so I tried something like cd /usr/local/bin/bash; ./words but it didn't work.

What should I do?

Last edited by baldurpet; 03-04-2009 at 03:36 PM.
 
Old 03-04-2009, 03:42 PM   #2
digerati1338
Member
 
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
When it asks for command, enter /usr/local/bin/bash/words

If that doesn't work, make sure it's executable with chmod +x.
 
Old 03-04-2009, 04:46 PM   #3
baldurpet
Member
 
Registered: Dec 2008
Location: Iceland
Distribution: Ubuntu, freeBSD
Posts: 110

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by digerati1338 View Post
When it asks for command, enter /usr/local/bin/bash/words

If that doesn't work, make sure it's executable with chmod +x.
I chmod 700'd everything so that's not the problem. I'll just tell you exactly what I did:
  1. I right click the main menu and chose to change it.
  2. I select "New Item" and select "Program in terminal"
  3. I write /usr/local/bin/bash/words as a command like you said
  4. But when I run it I get the problem
    Code:
    Warning: Could not find '/usr/local/bin/bash/words', starting '/bin/bash' instead.  Please check your profile settings.
  5. Also! It opens in Konsole, the KDE terminal while I'm using GNOME. What's up with that? I'd rather want it open the gnome-terminal.
 
  


Reply



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
passing arguments to binary file called by launcher in GNOME desktop majrys1962 Linux - Desktop 1 12-11-2008 04:00 PM
how to run .exe file as we run the samwe in windows chandrala13 Linux - Newbie 2 05-22-2008 05:30 AM
Program launcher - run as root BobsYourUncle Linux - Desktop 2 10-06-2006 07:59 PM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 01:36 AM
launching mozilla with the run command or applicaton launcher allohakdan Linux - Newbie 2 11-19-2003 07:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 AM.

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
Open Source Consulting | Domain Registration