After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740434 - Allow opening a photo with other applications
Allow opening a photo with other applications
Status: RESOLVED OBSOLETE
Product: gnome-photos
Classification: Applications
Component: general
3.14.x
Other All
: Normal enhancement
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on: 762471
Blocks:
 
 
Reported: 2014-11-20 14:21 UTC by Allan Day
Modified: 2018-01-23 09:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
application, preview-menu: Add Open With… entry (6.21 KB, patch)
2015-12-02 10:20 UTC, Alessandro Bono
none Details | Review
base-item: Don't open items without a default app (1.05 KB, patch)
2015-12-11 16:09 UTC, Debarshi Ray
committed Details | Review
base-item, local-item: Track both the default GAppInfo and it's name (5.26 KB, patch)
2015-12-11 16:10 UTC, Debarshi Ray
committed Details | Review
Open with in selection mode (9.06 KB, patch)
2016-02-25 16:07 UTC, Rafael Fonseca
none Details | Review
Open with in preview menu (10.02 KB, patch)
2016-02-25 16:08 UTC, Rafael Fonseca
none Details | Review
Open with in selection mode (9.14 KB, patch)
2016-03-02 16:34 UTC, Rafael Fonseca
none Details | Review
Open with in preview menu (10.11 KB, patch)
2016-03-02 16:35 UTC, Rafael Fonseca
none Details | Review

Description Allan Day 2014-11-20 14:21:50 UTC
Photos currently has an "Open with Image Viewer" menu item (I presume that this is because Image Viewer is the default app for this mimetype). This isn't particularly useful - Photos already allows me to view the image, what I really want to do is edit it with the GIMP or similar.

One possibility would be to have an "Open With..." submenu, that lists available apps.
Comment 1 Alessandro Bono 2015-12-02 10:20:59 UTC
Created attachment 316647 [details] [review]
application, preview-menu: Add Open With… entry

Initial implementation. We still need to decide if we want
this feature only for local images or not. Also, for some
reasons GIMP is launched without theme.
Comment 2 Debarshi Ray 2015-12-11 15:09:29 UTC
(In reply to Alessandro Bono from comment #1)
> Initial implementation. We still need to decide if we want
> this feature only for local images or not. Also, for some
> reasons GIMP is launched without theme.

For the time-being it is safe to assume that we will always open remote content in the browser, and use the native application only for local content. This is also what gnome-documents does, except ownCloud which it opens with the native application.

The gnome-documents code has evolved a bit in this area. See the three patches tagged with https://bugzilla.gnome.org/show_bug.cgi?id=740978
Comment 3 Debarshi Ray 2015-12-11 15:13:19 UTC
Review of attachment 316647 [details] [review]:

Thanks for picking this up, Alessandro. A few comments:

::: src/photos-application.c
@@ +539,3 @@
+  display = gtk_widget_get_display (GTK_WIDGET (parent));
+  launch_context = gdk_display_get_app_launch_context (display);
+  g_app_info_launch_uris (info, uris, G_APP_LAUNCH_CONTEXT (launch_context), &error);

Have you noticed photos_base_item_open? It would be good to have a similar machinery for this, so that we can deal with tricky edge cases where multiple items might be selected.

@@ +685,3 @@
+                                                        GTK_DIALOG_DESTROY_WITH_PARENT |
+                                                        GTK_DIALOG_USE_HEADER_BAR,
+                                                        mime_type);

The designs that I saw in Madrid used a GtkAppChooserButton in the selection toolbar, and a sub-menu in the preview hamburger menu.
Comment 4 Debarshi Ray 2015-12-11 16:09:56 UTC
Created attachment 317218 [details] [review]
base-item: Don't open items without a default app
Comment 5 Debarshi Ray 2015-12-11 16:10:25 UTC
Created attachment 317219 [details] [review]
base-item, local-item: Track both the default GAppInfo and it's name
Comment 6 Debarshi Ray 2015-12-11 16:10:59 UTC
These 2 patches bring the code in line with the fixes in gnome-documents.
Comment 7 Rafael Fonseca 2016-02-25 16:07:42 UTC
Created attachment 322390 [details] [review]
Open with in selection mode

Add open with external app capability on selection mode.
Comment 8 Rafael Fonseca 2016-02-25 16:08:40 UTC
Created attachment 322391 [details] [review]
Open with in preview menu

Improve Open with capability:
- Add open with item to the preview menu.
- Unify open with logic between photos-application and photos-selection-toolbar.
Comment 9 Rafael Fonseca 2016-03-02 16:34:39 UTC
Created attachment 322878 [details] [review]
Open with in selection mode

Rebase on top of master.
Comment 10 Rafael Fonseca 2016-03-02 16:35:33 UTC
Created attachment 322879 [details] [review]
Open with in preview menu

Rebase on top of master.
Comment 11 Alessandro Bono 2016-04-08 09:18:28 UTC
(In reply to Debarshi Ray from comment #3)
> The designs that I saw in Madrid used a GtkAppChooserButton in the selection
> toolbar, and a sub-menu in the preview hamburger menu.

Where are those designs? I can't find them online.
Comment 12 GNOME Infrastructure Team 2018-01-23 09:23:42 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-photos/issues/21.