You are not logged in.

#1 2009-07-24 19:23:36

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

file association in xfce4

I am wondering how file association works in xfce4.

Examples: After emacs was installed, xfce4 wanted to open all kinds of files in a new instance of emacs. An .scm scheme source code file was opened in StarCraft Map Editor big_smile An .xml file was opened in winebrowser,  many many instances of winebrowser were opened, stole all cpu time and I had to kill the X session. An .mp3 is opened in gxine. (I think gxine has a horrid UI, I use it as an opera plugin.)

In the right click menu I can choose between gxine or vlc or audacious. "Open With Other Application" > "Use as default for this kind of file"  is an option too, but I rather have this information accessible in one conf file. Now is there one somewhere?


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

#2 2009-07-24 20:25:06

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: file association in xfce4

I think that what you want resides inside ~/.local/share/applications


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2009-07-24 21:06:17

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: file association in xfce4

Offline

#4 2009-07-24 23:31:47

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

Re: file association in xfce4

Yes, there were relevant files in ~/.local/share/applications/  I was staring right at them and didn't see. Anyway I don't understand them and their syntax well enough to edit them yet.

mimeinfo.cache

[MIME Cache]
application/x-wine-extension-ini=wine-extension-ini.desktop
image/gif=feh-usercreated-1.desktop
image/jpeg=feh-usercreated-1.desktop
application/x-wine-extension-hlp=wine-extension-hlp.desktop
image/png=feh-usercreated-1.desktop
application/x-wine-extension-scx=wine-extension-scx.desktop
text/html=wine-extension-htm.desktop;wine-extension-html.desktop;
text/plain=gvim-usercreated.desktop;wine-extension-txt.desktop;
application/rtf=wine-extension-rtf.desktop
application/x-chm=wine-extension-chm.desktop
application/xml=wine-extension-xml.desktop
text/x-scheme=wine-extension-scm.desktop
application/x-mswrite=wine-extension-wri.desktop

A lot of wine stuff and feh doesn't animate .gif

defaults.list

[Default Applications]
application/xml=gvim.desktop
audio/mpeg=vlc.desktop
video/x-flv=vlc.desktop
text/x-scheme=gvim-usercreated.desktop
application/x-shockwave-flash=opera.desktop;conkeror.desktop
video/x-ms-wmv=vlc.desktop
text/html=opera.desktop

This one looks better, but isn't it a bit short? (Neither opera or conkeror will actually play the .swf I know I have to fix that somewhere else.)

File type, as thunar shows it, seems to be another thing and the cmd "file" shows yet another type.
/etc/xdg/xfce4/helpers.rc     are just 3 apps and I'm only using 2 since I don't use a mail app.


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

#5 2009-07-25 09:18:13

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: file association in xfce4

Can't help you there, I knew where those files were because I have just nuked all of them a while before I saw your post big_smile (wine was trying to open everything and that was not what I wanted).

I guess you can always change the default app for some kind of file and see what changes inside the files in ~/.local/share/applications/ and try to figure out how it works.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2009-07-30 22:41:40

kanonmat
Member
From: Linköping, Sweden
Registered: 2008-10-30
Posts: 31

Re: file association in xfce4

I realized MIME is something larger than just concerning xfce4. I found http://standards.freedesktop.org/shared … atest.html That one goes a bit above my head. I found the mime-editor pkg, when I ran mime-editor I was kind of lost and saw ~600 types and there was no search function big_smile  Maybe someone could write that.

A user MIME howto:
http://ubuntuforums.org/showthread.php?t=150393


hp 6910p laptop // phenomII965, gigabyte GA-MA790XT-UD4P mobo, 8600gt desktop.
Sometimes I play xonotic, sometimes I sleep.

Offline

Board footer

Powered by FluxBB