how to create wine .desktop shortcuts?
hello
i am having trouble with the above. in this example, i will use as example the program IceDragon. after installing it, the program does not appear in the menu. i have followed the archlinux guide to add the menu entries and set wine 32bit and 64bit environment. i find the .desktop file in /root/.local/share/applications/wine/Programs/Comodo/IceDragon/ , the contents:
[Desktop Entry]
Name=Comodo IceDragon
Exec=env "/root/.wine" /usr/bin/wine C:\\\\windows\\\\command\\\\start.exe /Unix /root/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\\ Menu/Programs/Comodo/IceDragon/Comodo\\ IceDragon.lnk
Type=Application
StartupNotify=true
Path=/root/.wine/dosdevices/c:/Program Files/Comodo/IceDragon
Icon=3EAB_icedragon.0
StartupWMClass=icedragon.exe
clicking on the .desktop file does not start the program. but the program can run when executed in the terminal. i then tried to follow the instructions here: https://www.dedoimedo.com/computers/plasma-task-manager-icons-custom-wine.html , but clicking on the desktop icon created also does not start the program.
i tried with another program LINE, also same result. thanks
About this post
- Posted
- Archived
- Score
- 8 · 100% up
- Kind
- Text
- ID
- aciga4
9 comments
Usually you can just set "wine /path/to/exe" as exec and it will work. Not the, what it seems like, autogenetated mess you have there.
hello i did not seek to run wine as root. i ran it under user "lenovo". would this occur if user "lenovo" has same permissions as root user?
Deleted before we saved it.
probably because he's running his system as root.
after running dolphin in normal mode and reinstalling, the problem resolved
thanks
I think .desktop files might require an absolute path to the executable? Try replacing
envwith/usr/bin/env. Also, as other commenters have mentioned, you appear to be missing the name of the environment variable you are trying to set in yourenvcommand.Here's a full example that currently works for me: https://github.com/kalgynirae/dotfiles/blob/master/applications/fl-studio.desktop
hi i tried the following command but got error "access denied":
Exec=/usr/bin/env WINEPREFIX="/home/lenovo/win32" /usr/bin/wine C:\\\\windows\\\\command\\\\start.exe /Unix /root/.wine/dosdevices/c:/Program Files/Comodo/IceDragon/icedragon.exe
then i tried a version of your command but it spin for for a while seems like loading but the program did not open:
Exec=/usr/bin/env WINEPREFIX=/home/lenovo/win32 wine start '/root/.wine/dosdevices/c:/Program Files/Comodo/IceDragon/icedragon.exe'
From where is /root/.wine from initially, if your prefix is in /home/lenovo ? Did you install the application in the different prefix? It gives permission issues as your user doesn't have access to /root. I recommend reinstalling the game, as it looks like you installed it as root(hence it's in root's folder)
If you use PlayOnLinux, it's easier, you just have to put this command in the .desktop file
Replace program with the name you set after choosing the executable file of your program and it should work.