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?
TLDR, scroll down to the script. Make a .sh file, allow it to run as a program, set it as your default program to open whatever filetype
Navigate to the appropriate/your favorite folder to store portable applications. Make the below script as a new file called WhateverYouWant.sh
Fellow newbies, the .sh is important.
Then set this .sh file’s permissions to allow executing this file as a Program; may differ by distro.
You can also check the appropriate windows-formatted filepath with Winetricks, using its built in windows File Explorer, finding your .exe, and copying the path starting from "C:".
[Edit: the default install folder in the script would normally be C:\Program Files, my bad. I downloaded the portable version and shoved it wherever, so my filepath looks like “C:\users\Froggy\Documents\PDFXchange test01\PDFXEdit.exe”]
Mint Cinnamon 21:
I could not tell you for the life of me why this didn’t work with a .desktop file on Mint 21.
I spent the past few hours down the wrong rabbit holes with .desktop and exec=wine ‘filepaths’ and just about died of asphyxiation from absolutely nothing happening. I’ve been wanting to do the same thing too for a while, but decided that right before bedtime was the perfect time to look it up.
[Edit: I figured out spacing in the script. Also moved the Mint specific instructions down the comment for flow clarity]
wow thanks, I’ll give this a shot!