-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve image page #6
Comments
Hey @Antolius, I had this weird and probably impractical idea. But how about opening images using a proper image viewer and not inside Starfish? That would be proper UNIX philosophy. Especially in elementary OS, the photos app opens single images pretty fast, and it would be one less thing to maintain for Gemini devs. |
@Suzie97 this is actually a great idea! I made a quick prototype and I'm really happy with how it works, UX-wise. Unfortunately, I don't know how to make it compatible with flatpak sandboxing. I want clicking on an image link to either immediately open the image in the appropriate app or to prompt user to pick an app with app chooser portal first (if no default is established). This means I need to save the image into some directory accessible to other apps. To do that I can either:
I admit I'm not an expert on flatpak and portals, and there might be a third option that eludes me. But conceptually, what I'm trying to do is create a file from my app and have it opened by some other app. This does seem precisely like a security issue that sandboxing is meant to prevent. |
I'm not an expert in flatpak and portals. So when we download a file using Starfish, how does it save the file to downloads? Doesn't that require write access? If that can already be done, then Starfish can simply download image files temporarily and delete them when the preview is closed. |
OK, turns out I was totally wrong about the "flatpak issue". I can download images into something like XDG_CACHE_HOME directory, and they will be accessible to Photos (or any other app). I'll clean up my feature branch, add some cleanup code and merge it in. @Suzie97 thanks again for this suggestion, it's gonna be great! |
In case image is bigger than the application window it should scale down to fit the window.
User should have an option of zooming the image to its full dimensions or fitting it to window.
User should be able to right-click on the image, and the popup menu should have option to save or copy the image.
The text was updated successfully, but these errors were encountered: