You are not logged in.

#1 2012-09-16 15:34:27

zidarsk8
Member
Registered: 2011-12-06
Posts: 97

Changing default applictions in XFCE

Hi,

I have installed gvim because it has python enabled, and vim package does not. But that means all my text(ish) files now get opened by gvim by default.

I am on XFCE, and i have the mime type editor, where i can manually change all the default applications from gvim back to gedit.

What I would like to know, is how can I make that automatically be the default option, because there are a lot of mime types for me to be editing that by hand. Or if someone knows where I could find the config file and just run sed -i over it?

Thanks for the help

Offline

#2 2012-09-16 16:03:03

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Changing default applictions in XFCE

I believe you can right-click on a file of the type you want to change in Thunar, then choose: Properties > Open With: and choose your default application for that file type.

Offline

#3 2012-09-16 16:14:47

zidarsk8
Member
Registered: 2011-12-06
Posts: 97

Re: Changing default applictions in XFCE

Yes, and it does the same thing as the mime type editor, but that's not how to globally change gvim with gedit for all files.

Offline

#4 2012-09-16 18:50:51

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Changing default applictions in XFCE

You might try editing: /usr/share/application-registry/gnome-vfs.applications

I suggest you save a backup of gnome-vfs.applications in case it doesn't work for you.

Offline

#5 2012-09-16 19:51:49

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Changing default applictions in XFCE

I found this to be quite a pain too. I have a script called /usr/bin/dummy:

rm ~/.local/share/applications/dummy-usercreated.desktop

If there's a file that doesn't open in the right program by default, I tell Thunar to open it with /usr/bin/dummy. I then go into ~/.local/share/applications/defaults.list, find "dummy-usercreated.desktop" and change it to the desktop file it should really be.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

Board footer

Powered by FluxBB