Skip to content

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

​

8 points8 comments
Open on Reddit
About this post
Posted
Archived
Score
8 · 100% up
Kind
Text
ID
aciga4

Author

6
posts
13
comments
3
media
View profile

9 comments

    1. You're running your system as root from what it seems. That is really dangerous.
    1. You have a weird environment variable setting there, you did not specify what variable you're setting. And you don't need to set WINEPREFIX manually if it's ~/.wine
    1. You're trying to launch a Windows shortcut rather then the game exe file itself, which may not work.

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.

18 points

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?

1 points
unknown author2 hidden

Deleted before we saved it.

4 points

probably because he's running his system as root.

8 points

after running dolphin in normal mode and reinstalling, the problem resolved

​

thanks

​

1 points

I think .desktop files might require an absolute path to the executable? Try replacing env with /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 your env command.

Here's a full example that currently works for me: https://github.com/kalgynirae/dotfiles/blob/master/applications/fl-studio.desktop

1 points

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'

1 points

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)

2 points

If you use PlayOnLinux, it's easier, you just have to put this command in the .desktop file

playonlinux --run program

Replace program with the name you set after choosing the executable file of your program and it should work.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.