Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Have you made you script executable adding execute permission?

    and does it have propper sha-bang specified?
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Just 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.

  4. #4
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    try putting file in /usr/local/bin
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  5. #5
    Just 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.

  6. #6
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Post output of this.
    grep PATH= ~/.bash_profile
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  7. #7
    Linux Newbie tetsujin's Avatar
    Join Date
    Oct 2008
    Posts
    115
    Quote Originally Posted by Muscovy View Post
    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.
    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...)

  8. #8
    Just 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?

  9. #9
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...