Nokse22 / Exhibit

3D model viewer for the GNOME desktop powered by f3d
https://flathub.org/apps/io.github.nokse22.Exhibit
GNU General Public License v3.0
73 stars 7 forks source link

Feature request: Open model externally #22

Closed cassidyjames closed 2 months ago

cassidyjames commented 2 months ago

I absolutely love Exhibit, and it instantly became part of my 3D printing workflow. One thing that would make it a bit more smooth would be to have a button to open the currently-loaded file with another app.

My use case is that I want to set Exhibit as the default app for 3D model files so I can easily preview them when I open them from the file browser, Firefox's downloads UI, etc. But sometimes I then want to pop it open in Cura or another 3D printing slicer—it would be nice to have a little “Open With…” button in the headerbar somewhere that spawns the UI to ask which app to open it with.

I believe this should be able to be implemented with org.freedesktop.portal.OpenURI.OpenFile, passing true for the ask option.

cassidyjames commented 2 months ago

More specifically, this should be the Python docs. :) http://lazka.github.io/pgi-docs/#Xdp-1.0/classes/Portal.html#Xdp.Portal.open_uri

Nokse22 commented 2 months ago

Thank you very much!

It is a good idea, I will definitely be adding it in the next release.