Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 98849  / 2 Years ago, thu, february 3, 2022, 5:47:42

While attempting to create a desktop shortcut for an app that uses wine I came up with this error:



Failed to execute child process "/home/fiver/.wine/drive_c/Program" (No such file or directory)


I have followed all the instrutions at jaypeeonline.net


More From » wine

 Answers
7

You can create by hand a desktop shortcut for your applications installed with wine by following these steps:




  1. Open your favourite text editor (gedit, nano, etc.), create a new file with the following content and save it to your Desktop with a name having extension .desktop



    In this example, I've chosen to the name inetexplorer.desktop and saved it to my desktop.




    [Desktop Entry]
    Name=Internet Explorer
    Exec=wine "C:Program FilesInternet Exploreriexplore.exe"
    Icon=/path/to/iconfile
    Type=Application
    Categories=Wine;



    Here, replace the value for Name field with that of the target application's name. (In the example, it's Internet Exolorer.) The value of Exec would be in the format:



    wine "C:path to theexecutable file"


    (for CLI application) like say



    wineconsole "C:path to theexecutable file"


    (for GUI applications)



    wine "C:Program FilesInternet Exploreriexplore.exe"


    (enclosing the path within double quotes ".. .." is important if the path contain blank spaces.)



    Replace /path/to/iconfile (the value for Icon field) with the path of an icon file (like Icon=/home/username/Pictures/internet-explorer.png) or you can omit this line of entry.



    On the left is a shortcut with icon specified, for the one on right, not.
    iconField


  2. Turn on the file's execute bit on.



    Graphically you can do it by right clicking the .desktop file, and from the context menu select Properties. In the properties window, select Permission tab, look for a label Execute: and check-mark the check-box next to it so that the shortcut becomes executable.



    selecting property from right-click context menu
    rightClickTheFile



    setting execute permission
    executableProperty



    From terminal, you can do this with:



    chmod +x $USER/Desktop/inetexplorer.desktop


    where $USER/Desktop/inetexplorer.desktop should be the absolute path of the desktop shortcut that was created.



[#26396] Saturday, February 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
berlorful

Total Points: 346
Total Questions: 90
Total Answers: 99

Location: Monaco
Member since Tue, Nov 30, 2021
2 Years ago
berlorful questions
Thu, Sep 2, 21, 10:12, 3 Years ago
Sun, May 9, 21, 20:55, 3 Years ago
Mon, Jan 16, 23, 23:19, 1 Year ago
Mon, Aug 29, 22, 05:43, 2 Years ago
;