** Description changed:

  Environment:
  • $XDG_CURRENT_DESKTOP: Unity:Unity7:ubuntu
  
  Problem:
  On a fresh Ubuntu Unity installation, installing applications that register 
inode/directory in their .desktop file (such as easytag or code) immediately 
causes those apps to become the default handler when double-clicking folders on 
the desktop or via xdg-open.
  
  Root Cause:
  Ubuntu Unity currently does not ship a unity-mimeapps.list in 
/usr/share/applications/. Instead, the desktop session falls back to 
/usr/share/applications/gnome-mimeapps.list, which sets:
  inode/directory=org.gnome.Nautilus.desktop;org.gnome.baobab.desktop
  Since Nautilus is not installed by default on Ubuntu Unity, there is no valid 
default handler for inode/directory. When a third-party package like EasyTAG is 
installed, update-desktop-database regenerates mimeinfo.cache and assigns 
inode/directory to EasyTAG by default.
  
  Proposed Solution:
  Ship /usr/share/applications/unity-mimeapps.list with the Ubuntu Unity 
default settings package containing at least:
  [Default Applications]
  inode/directory=nemo.desktop
  
  Because $XDG_CURRENT_DESKTOP is set to Unity:Unity7:ubuntu (starting
  with Unity), unity-mimeapps.list will take precedence over gnome-
  mimeapps.list according to the XDG MIME Apps specification, permanently
  preventing third-party apps from hijacking directory handling while
  still allowing users to override it locally.
  
  Temporary workaround:
  echo -e "[Default Applications]\ninode/directory=nemo.desktop" | sudo tee 
/etc/xdg/mimeapps.list
+ 
+ Similar settings might be useful for Atril and other Unity-Applications.

** Description changed:

  Environment:
  • $XDG_CURRENT_DESKTOP: Unity:Unity7:ubuntu
  
  Problem:
  On a fresh Ubuntu Unity installation, installing applications that register 
inode/directory in their .desktop file (such as easytag or code) immediately 
causes those apps to become the default handler when double-clicking folders on 
the desktop or via xdg-open.
  
  Root Cause:
  Ubuntu Unity currently does not ship a unity-mimeapps.list in 
/usr/share/applications/. Instead, the desktop session falls back to 
/usr/share/applications/gnome-mimeapps.list, which sets:
  inode/directory=org.gnome.Nautilus.desktop;org.gnome.baobab.desktop
  Since Nautilus is not installed by default on Ubuntu Unity, there is no valid 
default handler for inode/directory. When a third-party package like EasyTAG is 
installed, update-desktop-database regenerates mimeinfo.cache and assigns 
inode/directory to EasyTAG by default.
  
  Proposed Solution:
  Ship /usr/share/applications/unity-mimeapps.list with the Ubuntu Unity 
default settings package containing at least:
  [Default Applications]
  inode/directory=nemo.desktop
  
  Because $XDG_CURRENT_DESKTOP is set to Unity:Unity7:ubuntu (starting
  with Unity), unity-mimeapps.list will take precedence over gnome-
  mimeapps.list according to the XDG MIME Apps specification, permanently
  preventing third-party apps from hijacking directory handling while
  still allowing users to override it locally.
  
  Temporary workaround:
  echo -e "[Default Applications]\ninode/directory=nemo.desktop" | sudo tee 
/etc/xdg/mimeapps.list
  
- Similar settings might be useful for Atril and other Unity-Applications.
+ Similar settings might be useful for Atril and other Unity applications.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175445

Title:
  Missing default MIME association for inode/directory (nemo.desktop)
  causes third-party apps like EasyTAG to hijack folder opening

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-settings/+bug/2175445/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to