Re: Setting default GNOME settings with XDG_DATA_DIRS



On Wed, 2010-08-25 at 13:15 +0000, Camaleón wrote:
On Wed, 25 Aug 2010 08:14:39 -0400, John A. Sullivan III wrote:

On Wed, 2010-08-25 at 06:45 +0000, Camaleón wrote:
(...)

Does it work if you place the "defaults.list" file in "~/.local/share/
applications"?

I did not try that but it would defeat the purpose of centralized
administration.

That was just intended to check your setup.

If that works, then something is missing at your side. If that also fail,
then you could open a bug report.
Yes, indeed, if we place defaults.list in ~/.local/share/applications/
it works.

"echo $XDG_DATA_HOME" returns nothing on my box (not set), so I guess
the default path applies ("$HOME/.local/share").

Yes, we intentionally set it. Otherwise, the defaults are simply
/usr/share and /usr/local/share.

And what is output of that command?
We do not use $XDG_DATA_HOME but rather $XDG_DATA_DIRS and it is set to:
XDG_DATA_DIRS=/data/.Common/xdg/default:/usr/share:/usr/local/share::/opt/trinity/share/:/usr/share/

I believe XDG_DATA_HOME is for repointing the user's configuration
directory, e.g., ~/.local.

As per the links referenced below:
"Default applications to use for specific MIME types should be specified
in a file called defaults.list. This file is located in the applications
subdirectory for each directory in $XDG_DATA_HOME and $XDG_DATA_DIRS."

JFYI:

XDG Base Directory Specification
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

Registering Applications for MIME Types
http://library.gnome.org/admin/system-admin-guide/stable/mimetypes-registering.html.en
<snip>
Thanks for the links.

I think we see the problem, the values in $XDG_DATA_DIRS are being
superseded by /usr/share/gnome/applications/defaults.list which is a
symbolic link to /etc/gnome-vfs-2.0/defaults.list. Where is
this /usr/share/gnome/applications coming from and why is it overriding
XDG_DATA_DIRS? Thanks - John



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/1282938656.23985.10.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxx



Relevant Pages

  • system-wide association between MIME types and applications
    ... I'm using XFCE4 in Debian Wheezy and need a way to set system-wide association between MIME types and applications. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: system-wide association between MIME types and applications
    ... association between MIME types and applications. ... and I don't find any documentation. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Iceweasel annoyance
    ... the web page Iceweasel pops up a little box that says "This link needs ... And you MUST use this browser window to ... in a box like you can when you edit your Applications menu. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Setting default GNOME settings with XDG_DATA_DIRS
    ... I don't think it is required an additional command to populate the ... Thanks - John ... applications are still ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Command Line (was Re: a dumb query? pls humor me)
    ... In XFCEv4.4 it is "Preferred Applications". ... Novell's Directory Services is a competitive product to Microsoft's ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)