Bug 23424 - rfe: xdg-mime --system/global support
Summary: rfe: xdg-mime --system/global support
Status: RESOLVED WORKSFORME
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-20 08:45 UTC by Brian Thomason
Modified: 2011-03-31 06:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Brian Thomason 2009-08-20 08:45:51 UTC
xdg-mime default doesn't behave as I would expected.  Even when run with root privs, it attempts to create /home/$USER/.local/share/applications/defaults.list

Here on Ubuntu, the /home/$USER/.local/share/applications dir doesn't exist, and it simply fails.  Even if it did exist, when run with root privs, I would expect it to edit the global defaults.list file in /usr/share/applications, which on Ubuntu systems, is a symlink to /etc/gnome/defaults.list whih is contained in a package a pre-populated.

I would like to be able to pass --system to xdg-mime default and have it only modify /usr/share/applications/defaults.list (and respect the symlink if it is a symlink) rather than local files in ~.
Comment 1 Rex Dieter 2010-07-09 08:17:28 UTC
xdg-utils aren't generally for root/global operations, but for per user items.
Comment 2 Rex Dieter 2011-03-31 06:02:34 UTC
use 
xdg-mime --mode system


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.