Results 1 to 9 of 9
I scripted a simple in-terminal program (vclp), and put it in /bin . How can I run it from a launcher? Giving the launcher the command 'vclp' just makes it ...
- 07-03-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 12
Launch application and/in terminal
I scripted a simple in-terminal program (vclp), and put it in /bin . How can I run it from a launcher? Giving the launcher the command 'vclp' just makes it wait, then not do anything.
- 07-04-2009 #2
Have you made you script executable adding execute permission?
and does it have propper sha-bang specified?
- 07-04-2009 #3Just Joined!
- Join Date
- May 2009
- Posts
- 12
Yeah, I've compiled and added permission. I just want to know how to launch it through a link, versus typing the filepath.
- 07-05-2009 #4
try putting file in /usr/local/bin
- 07-05-2009 #5Just Joined!
- Join Date
- May 2009
- Posts
- 12
I tried that, no avail. And I don't think putting it in bin is what I need.
To clarify, I want a desktop launcher-type way to open the program.
- 07-05-2009 #6
Post output of this.
grep PATH= ~/.bash_profile
- 07-06-2009 #7
I don't know what launcher you're using... But from your description it sounds like the problem is that you want a terminal window to pop up when you run the program from the launcher? (It is possible to run a terminal program without a terminal - in this case its output will simply go nowhere, and depending on how the program is written it may terminate with SIGPIPE or it may continue running until finished)
If this is the main problem, there's a couple ways you could deal with it. First off, some launchers offer an option for how you want to run your program... In Gnome you can set a menu command to run a command normally or in a terminal...
The other option is to alter the command line to explicitly run the application within a terminal. For instance, change the command to something like "xterm -e vclp" - this will cause the menu command to run xterm and instruct it to run vclp. The downside to this approach is that the menu then can't work outside of X... (The Debian menu system, for instance, has provisions for working in text mode or in X...)
- 07-12-2009 #8Just Joined!
- Join Date
- May 2009
- Posts
- 12
The xterm worked.
Out of curiousity, is there a way to make it run in the gnome terminal?
And isn't there something specifically in the program that can be added that tells it to open a terminal window?
- 07-13-2009 #9Just Joined!
- Join Date
- May 2009
- Posts
- 12
Got gnome, it's gnome-terminal .
However, in both terminals it closes when I hit enter, even if it's an input.


Reply With Quote

