LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 04-04-2010, 06:35 AM   #1
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Rep: Reputation: 16
Changing multiple file associations in KDE


I want to change the file association for a lot of similar file types at the same time.

For example, for all text files KWrite is preferred rather than Kate, but I want it the other way around. If I would change it manually I would have to perform the change individually for a giant number of file types.

Is there any other way to change file associations than using 'systemsettings' GUI?

KDE version: 4.3.5

Last edited by ekj; 04-04-2010 at 06:36 AM.
 
Old 04-04-2010, 10:51 AM   #2
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 296

Rep: Reputation: 32
Solution on http://www.linuxquestions.org/questi...etting-464729/
 
Old 04-04-2010, 04:32 PM   #3
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
No, that didn't work, I tried it. I guess those steps are specific to Gnome, which wouldn't surprise me since Gnome is written out while KDE isn't mentioned at all.

(I assume that you're referring to this ubuntuforums howto/turorial that is linked from one of the posts.)

Last edited by ekj; 04-04-2010 at 04:47 PM.
 
Old 04-11-2010, 02:38 PM   #4
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
Noone else having any suggestions?
 
Old 06-08-2010, 01:30 AM   #5
bobc4012
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Rep: Reputation: 1
Use Ubuntu Tweak to change associations

There is a System Tool called "Ubuntu Tweak". I have used it under Gnome, but never tried it with KDE. Once installed, you can click on "System" (on the left side) and then click on "File Type Manager". You will see a list of categories. At the bottom, there is a check box, when checked, shows only those type which have an association (uncheck it to include those types without an association). Select the type (click on it) and you either click on the "Edit" button or double click (or more clicks) on the item selected. A box will pop up where you can see what is associated with the type (in some cases, more than one). By clicking on the "Add" button (one or more times), you will get a new list where you can select other apps that you may have installed to handle that type. There is also a "Use Custom Command" button, which will allow you to select (from the file system - usually in "usr/bin") an installed application that can handle that association - e.g., realplay for Real Player (I use it for MP3s).

BTW, this same action can also be achieved by "right-clicking" on the file and clicking on "Properties". Then click on "Open With" will bring up the same set of boxes as does "Ubuntu Tweak".

Unfortunately, Firefox seems to be worse. I did find an "Add-on" called "Force Content Type", which seems to work for those apps that don't show in the "Preferences -> Applications". I have found the new versions of Firefox to be a real pain in the tush - some MP3s aren't handled very well, some youtube videos won't play at all, etc. FireFox really needs to allow the user to add "new apps" For example, one version didn't have an entry for MP3 (missing in the mimetype.rdf file. I could not find a way to add it as Firefox kept replacing my changes (same with bookmarks I had from another bookmark file - I know, there is "sync" support, but it is also a PITA to use).

Last edited by bobc4012; 06-08-2010 at 01:38 AM.
 
Old 06-08-2010, 12:28 PM   #6
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
But the file associations are managed differently in Gnome and KDE. "Ubuntu Tweak" is a Gnome-only program according to Google.
 
Old 06-09-2010, 04:29 AM   #7
bobc4012
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Rep: Reputation: 1
There is a KDE Tweak.

There is a KDE Tweak, however, I have not tried it. It seemed to be available for earlier versions such as "Hardy" and maybe will still work for the newest versions. I did find it on Ubuntu (Synaptic PM - I include all/most repositories (except source)). It installed, but it did not make an "obvious entry" in either "System - Preferences/Admisitration" or "Applications - categories" (Ubuntu Tweak shows up under "Applications - System Tools"). Maybe some help can be obtained from " http://wiki.kde.org/ " or " http://docs.kde.org/stable/en/kdebas...ociations.html " ("kcontrol" to invoke the KDE Control Center). I also tried "kcmshell tweak" but, again, under Ubuntu. Also check " http://docs.kde.org/stable/en/kdebas...pes/index.html ". Also check out " http://lists.rpath.com/pipermail/dis...ry/000192.html ". I did a google on "kde application association" to come up with some of this stuff. Good luck.

Last edited by bobc4012; 06-09-2010 at 04:31 AM.
 
Old 06-10-2010, 04:34 AM   #8
ekj
Member
 
Registered: Apr 2007
Location: Sweden
Distribution: openSUSE
Posts: 37

Original Poster
Rep: Reputation: 16
Thanks!

The solution was to change the "InitialPreference" line in the .desktop files in /usr/share/applications.

Setting InitialPreference to 9 in kate.desktop (when it was 8 in kwrite.desktop) made Kate (rather than KWrite) being default for all kinds of text files.
 
  


Reply

Tags
kde


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE/Nautilus file associations TheStarLion Linux - Software 1 01-05-2010 12:31 PM
KDE file associations binarybob0001 Linux - Software 8 12-23-2007 08:06 PM
KDE file associations satinet Linux - Software 7 09-27-2005 11:50 AM
KDE looses file associations Doergn Linux - Software 2 06-12-2004 02:25 AM
KDE never remembers my file associations agustin Mandriva 5 11-07-2003 01:19 PM


All times are GMT -5. The time now is 12:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration