Desktop files hidden using alacarte don't appear in "open with other app..." dialog

Bug #26590 reported by Julien Olivier
32
Affects Status Importance Assigned to Milestone
eel
Fix Released
Medium
eel2 (Ubuntu)
Fix Released
Medium
Sebastien Bacher

Bug Description

I guess it's not directly a Nautilus bug, but if you right-click on a document
and choose "open with another application", a dialog appears, listing all the
available applications. The problem is that it seems to only list the
applcations that are displayed in the user's menu, discarding the ones that have
been hidden using such a tool as alacarte menu editor.

This is a problem because some applications - like Totem - have been hidden from
the menu for the reason that they're hardly ever launched from the menu, but
rather launch by double-clicking on a video in Nautilus. So, logically, such
applications (most often launched by opening an associated document) should
definitely appear in the "open with another application" dialog.

http://bugzilla.gnome.org/show_bug.cgi?id=323476: http://bugzilla.gnome.org/show_bug.cgi?id=323476

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. The "NoDisplay=true" option has no impact on the mimetype
list. Do you have an example of file having the issue? totem, evince are listed
when right clicking on a file and by the nautilus list. What version of Ubuntu
do you use?

Revision history for this message
Julien Olivier (julo) wrote :

I tried with a lot of files on my computer (text files, media files, pictures,
PDFs etc...) and cannot see totem or evince in the list of apps for any of those
files.

Then, I launched alacarte, and re-checked totem and evince. After that, I
re-tried selecting "open with another app" on some of my files, and both totem
and evince appeared in the list this time.

I'm using a fully upgraded (as of Dec. 5) Dapper Drake.

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

I don't have the bug here.

Revision history for this message
Julien Olivier (julo) wrote :

OK, then I guess it must be due to some misconfiguration on my installation.
Should I close this bug ?

Revision history for this message
Sebastien Bacher (seb128) wrote :

No, please keep it open while it's not fixed. Even if that's due to some users
configuration it would be nice to sort that :) Does it happen with an another
user on the same box?

Revision history for this message
Julien Olivier (julo) wrote :

I created a new user with the "desktop" profile using users-admin.

When I first logged in, Totem was actually vivsble in GNOME's menu. Shouldn't it
have been disabled by default ?
Then, I created an empty file and selected "open with another app". And totem
was indeed visible in the list (but remeber that Totam was visible in the menu).

So, I fired alacarte and unchecked totem.

Finally, I re-tried "open with another app" on the same file, and this time
totem wasn't in the list.

So, I guess I have two strange things here, which could or could not be linked.

Revision history for this message
Sebastien Bacher (seb128) wrote :

(In reply to comment #6)

> When I first logged in, Totem was actually vivsble in GNOME's menu. Shouldn't it
> have been disabled by default ?

No, that change has been reverted yesterday accordings to the differents users
comments we have got about this change.

The "NoDisplay=true" option does that for ~/.local/share/applications desktops
but not /usr/share/applications one, I'll forward that upstream

Revision history for this message
Sebastien Bacher (seb128) wrote :

I've opened a bug on gnome-menus upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=323476

gmenu_tree_directory_get_contents(), which is used by the open with dialog,
doesn't return "NoDisplay=true" desktop files. According to IRC discussion
that's a feature though and alacarte should use <Exclude> rather creating a new
.desktop for this. There is probably a timestamp issue too though, after moving
/usr/share/applications away and back those entries are not listed by the
function neither

Revision history for this message
Julien Olivier (julo) wrote :

Thanks !

Revision history for this message
Sebastien Bacher (seb128) wrote :

gnome-menus part has been fixed, eel still has to use the new API

Revision history for this message
Sebastien Bacher (seb128) wrote :

fixed upstream

Changed in eel:
status: Unconfirmed → Fix Released
Changed in eel2:
status: Unconfirmed → Fix Committed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

No new upstream since?k

Revision history for this message
Sebastien Bacher (seb128) wrote :

This upload fixes the issue:

 eel2 (2.14.1-0ubuntu1) dapper; urgency=low
 .
   * New upstream version:
     - Translation updates
     - Build fixes
     - Drop popt dependency
     - Show all desktop items in application selection (Ubuntu: #26590)
     - GnomeGoals: Use po/LINGUAS
   * debian/control.in:
     - don't Build-Depends on libpopt-dev

Changed in eel2:
status: Fix Committed → Fix Released
Changed in eel:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.