Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
Gedit has two desktop files
/usr/share/applications/gedit.desktop
/usr/share/applications/org.gnome.gedit.desktop
which leads into two similar items in gnome-shell menu
Version-Release number of selected component (if applicable):
gedit-3.14.3-3.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Open gnome-shell activities menu OR open application in top bar menu and locate gedit
2.
3.
Actual results:
two similar items saying "gedit"
Expected results:
only one gedit in menu lists, which mean only one .desktop file
Additional info:
Comment 1Ray Strode [halfline]
2015-07-01 12:27:55 UTC
odd, the duplicate desktop file is for backward compatibility. it has NoDisplay=true so shouldn't be showing up. What's strange is nautilus also has this, but it is getting correctly filtered, so the bug is manifesting selectively. will investigate.
Comment 2Ray Strode [halfline]
2015-07-01 13:43:55 UTC
fix building now. the desktop file add some other things in it that was preventing NoDisplay from working.
Hi Ray,
just a short question - is the fix designed to remove all content from one of the desktop files? Now, after update to gedit-3.14.3-4.el7.x86_64 I have still two .desktop files, but one of them (/usr/share/applications/gedit.desktop) is empty. Therefore, it does not show itself in the activities/menu, but I'm not sure if this is correct (I don't see how can an empty file handle backward compatibility).
$ ls -l /usr/share/applications/*gedit*.desktop
-rw-r--r--. 1 root root 1 Jul 1 15:48 /usr/share/applications/gedit.desktop
-rw-r--r--. 1 root root 22642 Jul 1 15:48 /usr/share/applications/org.gnome.gedit.desktop
Thanks,
Martin Simon
Martin I believe this is correct, the old gedit.desktop file is there for backward compatibility reasons.
Comment 6Ray Strode [halfline]
2015-07-14 15:34:12 UTC
nope, i must have screwed something up, it's supposed to have these contents:
[Desktop Entry]•
Name=gedit•
Exec=gedit %U•
MimeType=text/plain;•
NoDisplay=true•
Comment 7Ray Strode [halfline]
2015-07-14 17:48:24 UTC
Verified with gedit-3.14.3-7.el7.x86_64. There are two .desktop files, the main one and one for compatibility reasons. The content of the compatibility one does not end in new gedit icon in gnome-shell overview and thus the bug is fixed.
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-2215.html