You are not logged in.

#1 2025-11-26 06:04:15

trippycamper
Member
Registered: 2025-09-22
Posts: 12

[Solved] Running a desktop entry using wine

I am trying to make an application desktop entry for dwarf fortress, since I currently run the windows .exe file using wine. Looking online, it seems to be possible to run the .exe file in wine through my desktop entry, but I can't figure it out. What I have so far:

[Desktop Entry]

# The type as listed above
Type=Application

# The name of the application
Name=Dwarf Fortress

# A comment which can/will be used as a tooltip
Comment=Whimsey at your fingertips


# The executable of the application, possibly with arguments.
Exec=wine /home/cthulhu/Documents/DwarfFortress/Dwarf Fortress.exe

# The name of the icon that will be used to display this entry
Icon= /home/cthulhu/Pictures/df.png

# Describes whether this application needs to be run in a terminal or not
Terminal=false

# Describes the categories in which this entry should be shown
Categories=Games

journalctl output for the 10s after running the desktop image (omitted a few entries for other programs):

Nov 26 01:14:01 Evan-PC systemd[1002]: Started Dwarf Fortress.
Nov 26 01:14:01 Evan-PC systemd[1002]: Started Dwarf Fortress.
Nov 26 01:14:02 Evan-PC wine[1354391]: 00b4:fixme:wineusb:query_id Unhandled ID query type 0x5.
Nov 26 01:14:02 Evan-PC wine[1354355]: wine: failed to open "/home/cthulhu/Documents/DwarfFortress/Dwarf"
Nov 26 01:14:02 Evan-PC systemd[1002]: app-df@63eab13fa69d4b1384b3cc5163f94d88.service: Main process exited, code=exited, status=53/n/a
Nov 26 01:14:04 Evan-PC rtkit-daemon[3218]: Supervising 14 threads of 9 processes of 1 users.
Nov 26 01:14:04 Evan-PC rtkit-daemon[3218]: Supervising 14 threads of 9 processes of 1 users.
Nov 26 01:14:06 Evan-PC systemd[1002]: app-df@63eab13fa69d4b1384b3cc5163f94d88.service: Failed with result 'exit-code'.
Nov 26 01:14:06 Evan-PC systemd[1002]: app-df@63eab13fa69d4b1384b3cc5163f94d88.service: Consumed 1.198s CPU time, 73.4M memory peak.

I got the .desktop template and basic info from the wiki, but can't find anything that works to run it using wine. If I'm missing something obvious apologies, any advice appreciated!

Last edited by trippycamper (2025-11-26 15:56:20)

Offline

#2 2025-11-26 07:14:40

cryptearth
Member
Registered: 2024-02-03
Posts: 2,094

Re: [Solved] Running a desktop entry using wine

as the .exe contains a space you have to wrap it in quotes:

Exec=wine "/home/cthulhu/Documents/DwarfFortress/Dwarf Fortress.exe"

Offline

#3 2025-11-26 15:56:03

trippycamper
Member
Registered: 2025-09-22
Posts: 12

Re: [Solved] Running a desktop entry using wine

That was it lol.

Thank you!

Offline

Board footer

Powered by FluxBB