in reply to Re^6: Create a desktop icon for perl program in ubuntu?
in thread Create a desktop icon for perl program in ubuntu?

Well that is interesting, does the file exist, is the shebang valid? Does the file run if you type its name from a shell?

Try a valid path to perl with a space dash dash like #!/usr/bin/perl --

Replies are listed 'Best First'.
Re^8: Create a desktop icon for perl program in ubuntu?
by yedukondalu (Acolyte) on Dec 01, 2015 at 09:50 UTC

    Shebang is valid.program runs fine from my terminal.

      Try running the desktop file from the terminal, so you can get more diagnostic info

      if foo.desktop try gtk-launch foo

      or kioclient exec <path-to-desktop-file>

      or kfmclient exec file:/root/Desktop/cdrom.desktop

      If that doesn't yield something more than just flashing screen, try prefixing with strace

        gtk-launch ex. Its working fine..Program is running when i use the above command..