Bug#526958: XDG_DATA_HOME works

Neil Williams codehelp at debian.org
Thu May 21 16:25:15 UTC 2009


I had this bug come up with epiphany when doing my UK Tax Return -
extremely annoying because that is a rather important PDF. At first, I
thought the problem was Gimp but then I found this bug and tested with
iceweasel which used DocumentViewer (evince) as it should.

Re: #20
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526958#20

> Just to be sure, does $XDG_DATA_HOME contain /usr/share/gnome, and
> is /etc/gnome/defaults.list correct?

/etc/gnome/defaults.list was correct (AFAICT):

$ grep pdf /etc/gnome/defaults.list 
application/pdf=evince.desktop
application/x-bzpdf=evince.desktop
application/x-gzpdf=evince.desktop

However, XDG_DATA_HOME was not set, only _DIRS:

$ printenv | grep XDG
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/

Starting a new gnome-terminal, exporting the value:
$ export XDG_DATA_HOME=/usr/share/gnome
and then starting epiphany-browser from that terminal, the PDF opens in
evince.

Close all epiphany windows, start epiphany from the menu, the a PDF
opens in Gimp import again.

Close that window, start epiphany-browser from the terminal with
XDG_DATA_HOME exported, the PDF opens in evince.

I'll be putting XDG_DATA_HOME into ~/.bashrc but I've no idea why it
wasn't already set by something within epiphany/GNOME.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20090521/0b72a321/attachment-0001.pgp>


More information about the pkg-gnome-maintainers mailing list