Find the answer to your Linux question:
Results 1 to 9 of 9
Hi all, I got a problem trying to add a luncher in my application menu. I installed netgen and it works fine. If I try to launch it from the ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    25

    [SOLVED] Launcher problem

    Hi all, I got a problem trying to add a luncher in my application menu. I installed netgen and it works fine. If I try to launch it from the terminal like "$ netgen", it does work. It also works if I double click on the program icon in its folder. But when I try to make a launcher in the menu, it doesn't. I tried both Application (nothing happens) and Application in Terminal (I see a window flash for a second and then it disappears).

    Any idea of where is the problem?

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Hmmm... Maybe instead of just inputting "netgen," in the launcher, you may need to include the full path to where the executable is.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    25
    Already tried. Doesn't work.

  4. #4
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Did you try right clicking on the executable and doing "Make Link" and dragging the link to your desktop?
    Linux Mint + IceWM Registered:#371367 New Members: click here

  5. #5
    Just Joined!
    Join Date
    Jan 2007
    Posts
    25
    Uh, I didn't think to that. Let's see...


    ...nope, doesn't work. It works only if the link is in the same folder of the program.

  6. #6
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    You might have to create a little shell script to initiate it. Open a new file with your favourite editor and do something along the lines of:
    Code:
    #!/bin/bash
    
    #This here's my little script to start netgen
    
    cd path/to/netgen/directory &&
    ./netgen_executable
    Save it as something like "start_netgen" and make it executable:
    Code:
    chmod +x start_netgen
    ...and use start_netgen in the launcher. Hard to really know as I'm unfamiliar with netgen and don't know how it is started. There may be a better way... just trying to come up with ideas...
    Linux Mint + IceWM Registered:#371367 New Members: click here

  7. #7
    Just Joined!
    Join Date
    Jan 2007
    Posts
    25
    This is a good idea and it works. It's not the cleanest solution ever, but when you don't know where the problem is, there's not that much you can do...

    Thanks for you help!!

  8. #8
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    A cleaner way might be to symlink the executable to /usr/bin if there isn't one there already. Something like...
    Code:
    ln -s /path/to/netgen/netgen.sh /usr/bin/netgen
    Then you could use just "netgen" in the launcher...
    Linux Mint + IceWM Registered:#371367 New Members: click here

  9. #9
    Just Joined!
    Join Date
    Jan 2007
    Posts
    25
    True, that's cleaner. Sold! ^_^

Posting Permissions

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