[opensuse-packaging] application for mime type - priority
Hi, i need to figure out how to set priority for mime type. So when two application will associate same mime type i can set which application will be default. I find out that for GNOME there is a file /etc/opt/gnome/gnome-defaults.conf which contains such settings. This file is latter processed by script /sbin/conf.d/SuSEconfig.gnome-vfs2 which throw out missed apps and so on. So if i am right everything i need is add my application to [1] and run SUSEconfig.gnome-vfs Q1: how is right way to edit this file? or just call cat myconfig.desktp >>[1] ? For KDE i found that there is "extension" [2]: InitialPreference=X (which is forbidden by freedesktop [3]) This option is used in /opt/kde3/share realm. Q2: So do i need install two destkop file one in /usr/share/application and second(with additional option InitialPreference) in /opt/kde3/... Thanks Pavel [1] - /etc/opt/gnome/gnome-defaults.conf [2] - http://docs.kde.org/cgi-bin/desktopdig/search.cgi?show=development/en/kdebase/userguide/file-associations.html&collection=en&include=/development/&q=mime [3] - http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.h... P.S: relation bug #P.S. this is 210967 -- Pavel Nemec Software Engineer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: pnemec@suse.cz Lihovarska 1060/12 tel:+420 284 028 981 190 00 Praha 9 fax:+420 296 542 374 Ceska republika http://www.suse.cz
Pavel Nemec píše v Po 12. 03. 2007 v 10:10 +0100:
Hi, i need to figure out how to set priority for mime type. So when two application will associate same mime type i can set which application will be default.
I find out that for GNOME there is a file /etc/opt/gnome/gnome-defaults.conf which contains such settings. This file is latter processed by script /sbin/conf.d/SuSEconfig.gnome-vfs2 which throw out missed apps and so on. So if i am right everything i need is add my application to [1] and run SUSEconfig.gnome-vfs Q1: how is right way to edit this file? or just call cat myconfig.desktp >>[1] ?
Please do not edit it by scripts. It is maintained by the desktop team, which defines preferred applications in respect to desktop consistence and existing contracts. This SuSEconfig works in the way described in the comment of this file (i. e. prefers applications with GNOME or GTK in Categories.). gnome-defaults.conf have no influence to KDE.
For KDE i found that there is "extension" [2]: InitialPreference=X (which is forbidden by freedesktop [3])
Spec says exactly: There should be no priority for MIME Types in this field, or any form of priority in the desktop file. Priority for applications is handled external to the .desktop files.
This option is used in /opt/kde3/share realm.
Q2: So do i need install two destkop file one in /usr/share/application and second(with additional option InitialPreference) in /opt/kde3/...
Ask KDE team, what is the preferred way. -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +420 284 028 966 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Pavel Nemec
-
Stanislav Brabec