Bug 769831

Summary: xdg-desktop-menu installs into two locations
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: xdg-utilsAssignee: Rex Dieter <rdieter>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: pertusus, rdieter
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kamil Páral 2011-12-22 12:44:09 UTC
Description of problem:
I found out that I have two identical Google Chrome icons showing in my Gnome 3 applications search. After debugging deeper, I found that google-chrome.rpm runs this in its post-install script:

xdg-desktop-menu install /opt/google/chrome/google-chrome.desktop

Which seems pretty OK to me. But the xdg-desktop-menu then installs google-chrome.desktop file into two locations:

/usr/local/share/applications/google-chrome.desktop
/usr/share/applnk/google-chrome.desktop

I don't know whether this is OK. But Gnome 3 displays that as two same icons in the app menu (when I remove one of the files, one of the icons disappear). So either this is a bug in xdg-utils (shouldn't install into two places) or Gnome 3 (shouldn't display same file in two locations twice).


Version-Release number of selected component (if applicable):
xdg-utils-1.1.0-0.9.20110714.fc16.noarch
Gnome 3.2

How reproducible:
always

Steps to Reproduce:
1. xdg-desktop-menu install /opt/google/chrome/google-chrome.desktop (or some other desktop file)
2. look at the two locations

Comment 1 Rex Dieter 2011-12-22 12:48:41 UTC
/usr/share/applnk is very much deprecated, so xdg-menu should almost certainly no longer use it. (I'm a little surprised desktops, like gnome here, still show it's contents honestly).

Comment 2 Fedora End Of Life 2013-01-16 17:07:56 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Kamil Páral 2013-01-17 11:00:47 UTC
I still see it in Fedora 17.

Comment 4 Fedora End Of Life 2013-07-04 02:46:15 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Kamil Páral 2013-07-04 08:36:50 UTC
If I run it as root in F19, it no longer installs into /usr/share/applnk, great. But if I run it as a common user, it still installs into two locations:

~/.local/share/applications/
~/.gnome/apps/

Comment 6 Fedora End Of Life 2015-01-09 16:55:16 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Kamil Páral 2015-01-13 12:39:17 UTC
(In reply to Kamil Páral from comment #5)
> If I run it as root in F19, it no longer installs into /usr/share/applnk,
> great. But if I run it as a common user, it still installs into two
> locations:
> 
> ~/.local/share/applications/
> ~/.gnome/apps/

The same situation in Fedora 21, however, in GNOME, I see just a single icon, so everything is OK from user perspective.

xdg-desktop-menu could however stop installing to ~/.gnome/apps, because it's apparently not needed anymore.