this post was submitted on 15 Aug 2024
5 points (100.0% liked)

Linux Mint

1714 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:

linuxmint.com/start/

where is a current or past release. Here's an example using release 21.1 'Vera':

https://linuxmint.com/start/vera/

founded 3 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/18656931

Coming over from windows again. I've got pretty much everything figured out. I even got a VM going with my CAD software so I don't need to switch between Windows! I was super proud of myself on that one. The last thing I'm having trouble with....

I use pdfxchange for my PDF editor. It works great in wine but they don't have a specific Linux release. (If there is a good PDF editor that is Linux native let me know, I need good Mark up and dimensioning tools that can scale off of the drawings). I'm trying to set it to open PDFs by default but can't figure it out. Does someone have a good (easy) way to do it?

you are viewing a single comment's thread
view the rest of the comments
[–] gr3q@lemmy.ml 4 points 3 months ago* (last edited 3 months ago)

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/application and 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.desktop in particular). You must have the MimeType field for Preferred Applications

Create your new pdfxchange.desktop file and place it into ~/.local/share/applications so 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:%f

Try it in the terminal (without Exec=) until it works. %f is the file you want to open.