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 705644 - Don't use NoDisplay to filter programs available for Default Applications
Don't use NoDisplay to filter programs available for Default Applications
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkAppChooser
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Cosimo Cecchi
: 712544 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-08-07 21:29 UTC by Jim Nelson
Modified: 2014-12-09 04:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jim Nelson 2013-08-07 21:29:13 UTC
This was originally reported to us at http://redmine.yorba.org/issues/7292

Shotwell has two modes: library mode (the photo manager) and viewer mode (for viewing/editing photos directly from the filesystem).

The viewer's .desktop file has NoDisplay=true.  This is because the viewer cannot be launched without a filename as an argv, so it shouldn't be listed in a menu or in the Application Grid as a standalone application.  However, it can be associated with image files.

Apparently GNOME CC is not displaying the Shotwell Viewer as a potential default application because it has NoDisplay=true.  The reporter on our ticket is trying to work around the NoDisplay issue by modifying Shotwell's .desktop file, but I think GNOME CC shouldn't be using NoDisplay to prevent associating an application, only to prevent a menu system from displaying it as a standalone app.
Comment 1 Bastien Nocera 2013-08-08 00:01:42 UTC
GtkAppChooserWidget doesn't allow us to show NoDisplay apps. Reassigning to GTK+.
Comment 2 Nelson Benitez 2013-09-07 15:22:46 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 702681 ***
Comment 3 Bastien Nocera 2013-11-17 21:40:26 UTC
*** Bug 712544 has been marked as a duplicate of this bug. ***
Comment 4 Sebastien Bacher 2013-11-22 12:51:25 UTC
Reopening, that's still an issue with, even after the revert in [1], for GtkAppchooserButton

Small python testcase showing the issue 

"#!/usr/bin/python
from gi.repository import Gtk

win = Gtk.Window()
win.connect("destroy", lambda q: Gtk.main_quit())
appchooserbutton = Gtk.AppChooserButton(content_type="image/jpeg")
win.add(appchooserbutton)
win.show_all()
Gtk.main()"

[1] https://git.gnome.org/browse/gtk+/commit/gtk/gtkappchooserwidget.c?id=84922d331768ba9046d9737dbe66468ac45d41f2
Comment 5 Matthias Clasen 2014-12-09 04:43:10 UTC
your python testcase works fine here and shows the Shotwell viewer, which has NoDisplay=true