this post was submitted on 15 Aug 2024
6 points (100.0% liked)
Linux Mint
2325 readers
1 users here now
Linux Mint is a free Linux-based operating system designed for use on desktop and laptop computers.
Want to see the latest news from the blog? Set the Firefox homepage to:
where is a current or past release. Here's an example using release 21.1 'Vera':
https://linuxmint.com/start/vera/
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Not really the easy way, but this is how you can make your wine application show up in Preferred Applications.
You probably don't have a .desktop file for you wine app. Go to
/usr/share/applicationand find one entry that also shows up in your Preferred Applications->PDF list. Open that entry with a text editor: that's how your new entry should look like (I recommend looking at/usr/share/applications/xreader.desktopin particular). You must have theMimeTypefield for Preferred ApplicationsCreate your new
pdfxchange.desktopfile and place it into~/.local/share/applicationsso it will be picked up by the OS and it should show up in your Preferred Applications list.The only thing you need to figure out yourself how to make pdfxchange open a file from the command line, you need to put that into the
Exec=field.For you it might be something like this:
Exec=env WINEPREFIX="YOUR_PDFEXCHANGE_WINE_PREFIX" wine "YOUR_PDFEXCHANGE_WINE_PREFIX/drive_c/path/to/pdfxchange.exe" Z:%fTry it in the terminal (without Exec=) until it works. %f is the file you want to open.