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
You can create by hand a desktop shortcut for your applications installed with wine by following these steps:
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.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:
(for CLI application) like say
(for GUI applications)
(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.
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
setting execute permission
From terminal, you can do this with:
where
$USER/Desktop/inetexplorer.desktop
should be the absolute path of the desktop shortcut that was created.I've created a script that adds a shortcut to GNOME applications menu just by typing
./wine-create-shortcut paht/to/application.exe
.You can find further information here.
I suggest you to use PlayOnLinux, in combination with wine, which offers a clean and user-friendly interface, that let you install and manage windows software and games.
Here is a non-exhaustive list of the interesting points to know:
Nevertheless, PlayOnLinux has some bugs, as every piece of software:
Installation:
Here is another solution, that uses your Ubuntu OS based system standards.
Main Menu
Application and select New Item button,which will open a
Create Launcher
window, from where you can use the Browse button, that let you select the path to the.exe
(executable) windows application/game.You have to escape the white spaces using backslashes (
\
). Try to specify the command like this:Note the
\
before spaces.Because I cannot comment, I have to give here a separate answer. ;-) A big thanks goes to user "precise". The solution mentioned by him or her worked for me at Kubuntu 18.04 and Wine 5.0 but I had to add at the path name two backslashes (and not just one).
Based at the above mentioned example this will look like:
I have no idea why this is so, maybe because my Program Path is somewhat more complex:
A little update to this topic. Finally I was able to add the correct icon to the shortcut. (It was available in a hidden folder at the corresponding program location.) The extraction of the icon from the executable also worked but I was not able to use the separate *.ico file as icon source.
However, - here follows the full content of my manually generated and perfectly working Wine shortcut.
This corresponds mostly to the automatic established Microsoft PowerPoint Viewer shortcut:
There were added automatically several other parameters (with mostly no value) after making the file executable. Because these have no function, I have removed them again manually.
here is what i did on Linux Mint 20.3 XFCE: I followed the steps made by precise but with some additions, in my case i have installed TES:Oblivion and added some mods, one of them function as a separate launcher, so i used some of the original desktop shortcut settings in the new one.
Original:
And here the version i did:
Take note the Icon line, this is the real icon name:
goggame-1458058109.ico
; you can see a difference there, i don't know why it is writen like that in the original shortcut, but it works. The Path line i think it is needed to use that icon file.This may help you also if you need a NO_CD or patched launcher/executable for running old games.
I know the best and easiest way !
Open /home/.local/share/wine/programs And you can see your wine apps folders open your app folder , there is your_app_name.desktop , copy it to desktop and right click on it , and then , left click on Allow Launching
Congratulations !!! Your app shortcut is on your desktop , enjoy !
Sorry if my English is not good