Results 1 to 4 of 4

Thread: self created launcher doesn't do anything (14.04 x64)

  1. #1
    Join Date
    May 2009
    Location
    Ontario, Canada
    Beans
    67
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question self created launcher doesn't do anything (14.04 x64)

    Hi, all,

    New to 14.04.1, created a desktop launcher at ~/Desktop (tried ~/.local/share/applications) as:

    Code:
    [Desktop Entry]
    Version=1.0
    Type=Application
    Terminal=false
    Name[en_US]=my_gui
    Exec=/bin/run_my_gui.sh
    StartupNotify=true
    Right-click the launcher icons and set properties > Permissions > Execute as "Allow executing file as program"

    While I can run /bin/run_my_gui.sh from termianl without any issue (it's a gui executable), double clicking the launcher from desktop or from unity search brings a busy cursor but the application doesn't run at all.

    I've tried "gnome-desktop-item-edit" utility, launcher created by such behaves the same.

    Thanks for reading
    Last edited by legendbb; January 12th, 2015 at 11:08 PM. Reason: resolved

  2. #2
    Join Date
    Aug 2013
    Beans
    4,941

    Re: self created launcher doesn't do anything (14.04 x64)

    Try

    Code:
    Exec=sh /bin/run_my_gui.sh

  3. #3
    Join Date
    May 2009
    Location
    Ontario, Canada
    Beans
    67
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: self created launcher doesn't do anything (14.04 x64)

    Thanks for quick reply. Tried your code, no luck.
    I've cat some examples from /usr/share/applications/
    no syntax error I made. Anyone, please share a method in debugging .desktop launcher?

    Thanks,

  4. #4
    Join Date
    May 2009
    Location
    Ontario, Canada
    Beans
    67
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: self created launcher doesn't do anything (14.04 x64)

    Although I don't know what exactly cause the trouble, I got it working with the following settings:
    moved .desktop from ~/Desktop to /usr/share/applications and chagned .desktop to:
    [Desktop Entry]
    Version=3.0
    Type=Application
    Name=my_gui
    Terminal=false
    Exec=run_my_gui
    StartupNotify=true
    run_my_gui is a bash script wrapper file which calls the GUI to start.
    Last edited by legendbb; January 13th, 2015 at 01:17 AM.

Tags for this Thread

Bookmarks

Posting Permissions

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