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 1238207 - Two similar gedit icons in gnome-shell due two similar gedit's .desktop files
Summary: Two similar gedit icons in gnome-shell due two similar gedit's .desktop files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gedit
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Ray Strode [halfline]
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-01 12:10 UTC by Martin Simon
Modified: 2015-11-19 07:33 UTC (History)
3 users (show)

Fixed In Version: gedit-3.14.3-6.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 07:33:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2215 0 normal SHIPPED_LIVE gnome utilities bug fix and enhancement update 2015-11-19 08:26:52 UTC

Description Martin Simon 2015-07-01 12:10:26 UTC
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 1 Ray 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 2 Ray 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.

Comment 4 Martin Simon 2015-07-10 09:54:29 UTC
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

Comment 5 Tomas Pelka 2015-07-10 11:04:58 UTC
Martin I believe this is correct, the old gedit.desktop file is there for backward compatibility reasons.

Comment 6 Ray 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 7 Ray Strode [halfline] 2015-07-14 17:48:24 UTC
doh, echo/cat confusion in spec file

Comment 12 Martin Simon 2015-09-02 09:38:04 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.

Comment 13 errata-xmlrpc 2015-11-19 07:33:32 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-2215.html


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