Bug 769831 - xdg-desktop-menu installs into two locations
Summary: xdg-desktop-menu installs into two locations
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: xdg-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-22 12:44 UTC by Kamil Páral
Modified: 2015-01-13 12:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---


Attachments (Terms of Use)

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.


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