thunar file associations

View: New views
3 Messages — Rating Filter:   Alert me  

thunar file associations

by Miek Gieben-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have the following problem.  (This is with Thunar 0.9.3 on openSUSE)

How can I configure system-wide file associations with Thunar? Right
now *.pdf files are openened with Gimp and I want to change this to
evince. (This is for more than 150+ people, so right-click-change will
not do).

I read that some of these settings are stored in
~/.cache/Thunar/metafile.tdb. Compiling tdbtool myself and checking
the file seems to show it is empty - even if I change the file
associations. (tdbtool also segfaults shortly there after).

But where are the defaults (hopefully system-wide) stored, as I rather
change those?

Many thanks,

Regards,
Miek Gieben


_______________________________________________
Xfce mailing list
Xfce@...
http://foo-projects.org/mailman/listinfo/xfce
http://www.xfce.org

signature.asc (204 bytes) Download Attachment

Re: thunar file associations

by Sam Black :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 26 Oct 2009 11:51:19 +0100
Miek Gieben <miek@...> wrote:

> Hello,
>
> I have the following problem.  (This is with Thunar 0.9.3 on openSUSE)
>
> How can I configure system-wide file associations with Thunar? Right
> now *.pdf files are openened with Gimp and I want to change this to
> evince. (This is for more than 150+ people, so right-click-change will
> not do).
>
> I read that some of these settings are stored in
> ~/.cache/Thunar/metafile.tdb. Compiling tdbtool myself and checking
> the file seems to show it is empty - even if I change the file
> associations. (tdbtool also segfaults shortly there after).
>
> But where are the defaults (hopefully system-wide) stored, as I
> rather change those?
>
> Many thanks,
>
> Regards,
> Miek Gieben
You can create /usr/share/applications/defaults.list with the following;

[Default Applications]
application/pdf=evince.desktop

Or append "application/pdf=evince.desktop" if defaults.list already
exists.

There is a per user defaults.list in ~/.local/share/applications as
well, which XFCE edits directly when you right click and change the
handling application.

Hope this helps,

--
Kind Regards,

Sam Black


_______________________________________________
Xfce mailing list
Xfce@...
http://foo-projects.org/mailman/listinfo/xfce
http://www.xfce.org

signature.asc (205 bytes) Download Attachment

Re: thunar file associations

by Miek Gieben-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[ Quoting Sam Black in "Re: thunar file associations"... ]

> > But where are the defaults (hopefully system-wide) stored, as I
> > rather change those?
> >
> > Many thanks,
>
> You can create /usr/share/applications/defaults.list with the following;
>
> [Default Applications]
> application/pdf=evince.desktop
>
> Or append "application/pdf=evince.desktop" if defaults.list already
> exists.
>
> There is a per user defaults.list in ~/.local/share/applications as
> well, which XFCE edits directly when you right click and change the
> handling application.
>
> Hope this helps,
Thanks! This looks very promising. I hope to test this in the course
of this week.

grtz Miek


_______________________________________________
Xfce mailing list
Xfce@...
http://foo-projects.org/mailman/listinfo/xfce
http://www.xfce.org

signature.asc (204 bytes) Download Attachment