[Bug 703106] Re: xdg-update-menu overwrites the /usr/share/applications/defaults.list symlink with a file.

Martin Pitt martin.pitt at ubuntu.com
Thu Apr 14 17:01:53 UTC 2011


Accepted xdg-utils into lucid-proposed, the package will build now and
be available in a few hours. Please test and give feedback here. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Thank you in advance!

** Changed in: xdg-utils (Ubuntu Lucid)
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/703106

Title:
  xdg-update-menu overwrites the /usr/share/applications/defaults.list
  symlink with a file.

Status in Xdg-utils:
  Fix Released
Status in “xdg-utils” package in Ubuntu:
  Fix Released
Status in “xdg-utils” source package in Lucid:
  Fix Committed
Status in “xdg-utils” source package in Maverick:
  Fix Committed
Status in “xdg-utils” source package in Natty:
  Fix Released

Bug description:
  Binary package hint: xdg-utils

  The desktop-file-utils package creates
  /usr/share/applications/defaults.list as a symlink to
  /etc/gnome/defaults.list.  Unfortunately, the xdg-update-menu program,
  when called to install a .desktop file with new mime types, overwrites
  this symlink with a file.  It does this by reading the defaults.list,
  writing to a temporary file, making edits, then copying it back.  it
  doesn't notice if the defaults.list file is a symlink, and overwrites
  it with a file.

  A common example of this is installing google chrome.  it calls xdg-
  desktop-menu to install its desktop file, and the result is that
  /etc/gnome/defaults.list is no longer used.

  I suggest that xdg-desktop-menu should canonicalize defaults.list
  before writing to it.  I've attached a simple patch as an example.
  This patch will apply both to the latest package in natty, as well as
  to Lucid, where I'd really like this to be applied.



More information about the Ubuntu-sponsors mailing list