Closed ComFreek closed 3 years ago
Not sure if cluttering the right-button menu would be universally welcomed, but I see the issue nonetheless. There’s maybe a way to register pympress with the OS as a pdf-handling program, to be shown in the right click > “Open with” submenu.
We already have that on Linux via the .desktop file. We probably should look into doing this on macOS also.
There’s maybe a way to register pympress with the OS as a pdf-handling program, to be shown in the right click > “Open with” submenu.
Yes, registering Pympress as the PDF opening program would work, but I would not want that. The majority of PDFs I open are for reading, not for presenting.
I think it’s a more appropriate way to get the same result, no? In my imagination this doesn’t make pympress the default pdf reader, just a possible pdf reader.
Maybe using the assoc command in the post-install process could achieve that, but I’m don’t have a lot of time to look into this right now.
I think it’s a more appropriate way to get the same result, no? In my imagination this doesn’t make pympress the default pdf reader, just a possible pdf reader.
You are right, I agree now!
Maybe using the assoc command in the post-install process could achieve that
assoc .pdf
gives me .pdf=MiKTeX.pdf.2.9
, which is not even a program, so I doubt it is the best interface for modifying the open-with list. Additionally, it only works within cmd.exe, not even within PowerShell, so seems brittle to rely upon.
It seems one can modify the open-with list inside Windows' registry. It seems the way to go is to add a new verb handling program as written here for Wix installers. I am afraid that even after 10min of googling, I could not reliably find how this is done in terms of registry modifcations. Seems indeed to be require a bit of fiddling. Unless, of course, the bdist_msi
thing you use for creating the MSI installers offers some options for this. I couldn't find any when googling for that, though.
Not easy this one. Seems like MSI installers can do that, but not out of the box with cx_Freeze. I tried to manually specify the Extension / MIME / Verb tables but to no avail so far. It seems doable with other installer builders, but maybe only with admin privileges.
We’re getting closer, I finally found out how to do it… Just have to figure out how to adjust the text that is displayed now.
Done in f3a7fa5, available in beta release for testing
Tested and works great so far!
I am only wondering why Pympress doesn't directly appear in the "open with" list in the context menu, but rather I have to click "chose other app" (right context menu, lowest entry):
Is this list sorted by application start frequencies maybe? But that'd be strange: I never use TeXWorks or Chromium to open PDF files. Maybe this list is sorted alphabetically, but still hasn't updated to include pympress before TeXWorks (by alphabetic sorting as it'd be).
In the ribbon bar, it appears in the "click downwards arrow" list (as you've shown, too):
edit: I'll restart and see if it's just caching behavior.
I’m not sure why either, but does it show up in the proposals once you’ve used it once maybe ?
Feature request: when right-clicking on a PDF file in Explorer, show an entry "present via pympress"*. This saves me from
starting pympress' GUI and using its open file dialog, which is hard to navigate (lacking ability of pasting a path, non-Windows-native UX)
starting pympress on CLI for which I first need to figure out its path
Does this make sense for other OS, too?
*) or "open with pympress", there is probably a recommendation in Microsoft's UX guidelines