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

I hope the program is running..I tried removing the perl in Exec path in the above program..then an errors comes.. Details: Failed to execute child process "/home/yathayed/yedukondalu/programs/perl/advanced/tk/hotel_bill.pl" (No such file or directory)

  • Comment on Re^6: Create a desktop icon for perl program in ubuntu?

Replies are listed 'Best First'.
Re^7: Create a desktop icon for perl program in ubuntu?
by Anonymous Monk on Dec 01, 2015 at 09:36 UTC

    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 --

      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

Re^7: Create a desktop icon for perl program in ubuntu?
by Anonymous Monk on Dec 01, 2015 at 09:38 UTC
    Also try a simple program or oneliner like   perl -e" use Tk; tkinit()->MainLoop "