How to set system-wide file associations

James Richard Tyrer tyrerj at acm.org
Fri Apr 22 02:31:38 BST 2005


David Jarvie wrote:
> How can system-wide file mime-type associations be set in KDE? Using the
> File Associations tab of the Konqueror configuration dialog only seems to
> set file associations for the current user, even if that user is root.

Yes, that is that way it works.

To set this globally, you will need to do it manually.

Note that this is done in a way that may appear backwards.  Each 
application's '*.desktop' file in: "$KDEDIR/share/applications/kde" has 
a list of MIME types that it is associated with.  The MIME type files 
list only the file extensions.

The easiest way to do this globally is to set it up the way you want it 
globally in root and then copy the 'kde-*.desktop' files from: 
/root/.local/share/applications to: $KDEDIR/share/applications/kde.  You 
will then need to remove the prefix: "kde-" from the '*.desktop' file 
names. KRename is useful to do such mass renaming.

For non-KDE applications they will not have the "kde-" prefix and they 
need to be copied to: "$KDEDIR/share/applications".

-- 
JRT
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list