RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1259292 - 'Videos' is listed twice in Music/Video default applications
Summary: 'Videos' is listed twice in Music/Video default applications
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: totem
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Ray Strode [halfline]
QA Contact: Desktop QE
URL:
Whiteboard:
: 1259763 (view as bug list)
Depends On: 1235413
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-02 11:35 UTC by Vadim Rutkovsky
Modified: 2015-11-19 08:43 UTC (History)
6 users (show)

Fixed In Version: gtk3-3.14.13-16.el7 totem-3.14.3-5.el7 gedit-3.14.3-8.el7 file-roller-3.14.2-6.el7 nautilus-3.14.3-6.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 08:43:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (224.00 KB, image/png)
2015-09-02 11:43 UTC, Vadim Rutkovsky
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2227 0 normal SHIPPED_LIVE totem bug fix and enhancement update 2015-11-19 09:03:42 UTC

Description Vadim Rutkovsky 2015-09-02 11:35:50 UTC
Description of problem:
'Videos' is listed twice in Default Application's Music and Video list

Version-Release number of selected component (if applicable):
control-center-3.14.5-6.el7.x86_64
totem-3.14.3-2.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Open Control Center
2. Open Details - Default Applications
3. Expand Music and Video list

Actual results:
'Videos' is listed twice

Expected results:
Each item in the list should be unique

Additional info:

Comment 1 Vadim Rutkovsky 2015-09-02 11:43:29 UTC
Created attachment 1069381 [details]
Screenshot

Comment 2 Bastien Nocera 2015-09-02 16:24:41 UTC
What's the output of:
gvfs-mime --query video/x-ogm+ogg

Is this a clean installation, or an upgrade?

Comment 3 Vadim Rutkovsky 2015-09-02 22:52:42 UTC
Clean install of RHEL-7.2-20150824.n.0 compose

[root@wlan-r2s30 ~]# gvfs-mime --query video/x-ogm+ogg
Default application for 'video/x-ogm+ogg': totem.desktop
Registered applications:
	totem.desktop
	org.gnome.Totem.desktop
Recommended applications:
	totem.desktop
	org.gnome.Totem.desktop


Both files are provided by totem-3.14.3-2.el7.x86_64

Comment 4 Bastien Nocera 2015-09-04 14:16:35 UTC
This is caused by:

commit c6c23140c939c52be137bd64ead1681a81de5292
Author: Ray Strode <rstrode>
Date:   Fri Jun 26 13:05:55 2015 -0400

    Add totem.desktop to keep user mime associates working
    
    Related: #1174589 123541

I'm not sure we want to have this...

Comment 5 Ray Strode [halfline] 2015-09-08 12:19:48 UTC
So the problem the duplicate file tries to solve is keeping user defined custom mime handlers working.  See bug 1235413 comment 5 part 2

I agree though a duplicate icon in the applications list isn't really acceptable. We also have duplicate icons in the notification list (see bug 1259763 ) 

I think maybe we need to drop the duplicate file an come at the custom mime handler problem a different way.

Comment 6 Matthias Clasen 2015-09-18 17:36:34 UTC
Also see bug See bug 1259763

Comment 7 Matthias Clasen 2015-09-21 18:19:36 UTC
I would suggest that we make the code populating the notification panel and the default mime handler combos respect the NoDisplay key. That should solve the problem, and is probably the right thing to do, regardless.

Comment 8 Ray Strode [halfline] 2015-09-21 19:01:11 UTC
So we can't actually filter on NoDisplay since the Notifications panel depends on being able to show entries with NoDisplay=true (for instance the sharing panel).

I guess we can filter out by duplicate name except that runs into problems when running under a translated desktop.  We'd have to side step GDesktopAppInfo and load the desktop file a second time into a keyfile to get the untranslated names.

We could add a new key X-GNOME-Compat-Entry=true or something and check for that, but then we have to touch all the compat desktop files again, and we have to touch all the code that looks at the files to support the new key.

We could also copy the compat map that gnome-shell has to glib and use it for the mime handlers, and then drop all the compat files, but it could be that there are other things using the old names we aren't specifically aware of yet.

not sure what the best way forward is.

Comment 9 Ray Strode [halfline] 2015-09-21 19:07:14 UTC
okay so i think the easiest way forward is to put

X-GNOME-UsesNotifications=false in all the compat files to hide them from the notifications list, and then fixes the details panel to filter out NoDisplay applications.

Comment 10 Ray Strode [halfline] 2015-09-23 13:48:22 UTC
grr, so apparently filtering out NoDisplay was tried 2 years ago and reverted:

https://bugzilla.gnome.org/show_bug.cgi?id=702681

Comment 11 Ray Strode [halfline] 2015-09-23 13:53:21 UTC
So at this point I'm going to go with a downstream patch to filter out X-GNOME-Compat-Entry=true lines

Comment 12 Tomas Pelka 2015-09-23 14:43:52 UTC
Is this a right component?

Comment 13 Ray Strode [halfline] 2015-09-23 14:50:30 UTC
totem is one of the components affected. to minimize paperwork i'm using this bug for all the components

(gtk+, totem, file-roller, nautilus, gedit)

Comment 14 Ray Strode [halfline] 2015-09-23 14:51:50 UTC
(to be clear, the main fix is in gtk+ but all the compat desktop entries need to be updated as per comment 9 and comment 11)

Comment 15 Ray Strode [halfline] 2015-09-23 16:03:51 UTC
okay should be all set now.

for the custom key I ended up going with X-RHEL-AliasOf=name-of-new-file instead of X-GNOME-Compat-Entry=true.  This is because of a limitation in the GDesktopAppInfo api that would have required me to load each file twice if I wanted to check the value of a new custom key, but I can use the api without reloading the file if all I want to do is check the existence of a new key.

Comment 18 Matthias Clasen 2015-09-28 16:57:00 UTC
*** Bug 1259763 has been marked as a duplicate of this bug. ***

Comment 19 Michael Boisvert 2015-09-30 19:06:58 UTC
"Videos" is no longer listed twice under Music or Video. Verified.

Comment 21 errata-xmlrpc 2015-11-19 08:43:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2227.html


Note You need to log in before you can comment on or make changes to this bug.