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

Launchpad Bug Tracker 703106 at bugs.launchpad.net
Thu Mar 31 16:23:21 UTC 2011


** Branch linked: lp:ubuntu/xdg-utils

-- 
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:
  Confirmed
Status in “xdg-utils” package in Ubuntu:
  Fix Released
Status in “xdg-utils” source package in Lucid:
  Confirmed
Status in “xdg-utils” source package in Maverick:
  Confirmed
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