[opensuse-kde] Default application
Hi, I would like to understand how the default application is selected in KDE4. I have two files, * An AVI file that "xdg-mime query filetype" says has MIME type video/x-msvideo * A Matroska file that "xdg-mime query filetype" says has MIME type video/x-matroska And, * My ~/.local/share/applications/mimeapps.list file only has an entry for application/x-bittorrent, so it's irrelevant. I don't think there is any other mimeapps.list file in the system. * None of the app's .desktop files have an InitialPreference(1) entry Looking at the Matroska file it seems the priority of apps is based on: * First, the exact MIME type. If an app only supports application/x-matroska it will have a lower priority than other app that supports video/x-matroska * Second the InitialPreference value * Third... the alphabetical order ¿!? But then I fail to see a logic for the AVI file. Since the four apps that support it (VLC, gnome-mplayer, kaffeine and MPlayer) support exactly video/x-msvideo I would expect them to be alphabetical ordered. And that's what happens with all of them but VLC, somehow VLC is the default app. So, could someone explain me the full logic to select the priority of apps? (1) that seems no documented... default value seems to be 1, not sure if it accepts non-positive values -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
2010/6/6 Cristian Morales Vega
So, could someone explain me the full logic to select the priority of apps?
I was going to wait to first understand this before asking about the change in opensuse-factory. But since I saw Gnome has the problem fixed it's pretty KDE specific now. Gnome has a /etc/gnome_defaults.conf file, from the glib2-branding-openSUSE package, from which /usr/share/applications/defaults.list is created. So the default app for a MIME type in Gnome is well defined and constant even if the user installs new apps (the user can always explicitly change it). In KDE it seems openSUSE specifies the default apps... just installing them. So Kaffeine is the default KDE media player in openSUSE until the user install another one... after that the default media player changes, or not (depending of the alphabetical order?). It seems far from perfect. Should we add InitialPreference entries to the apps we select as default one for KDE? In fact probably the correct thing would be to do that only for the KDE-specific apps, and set the desktop-agnostic default apps through a /usr/share/applications/mimeapps.list file. I just learn all this this afternoon, I'm wrong? -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
On Sunday 06 of June 2010, Cristian Morales Vega wrote:
2010/6/6 Cristian Morales Vega
: So, could someone explain me the full logic to select the priority of apps?
I don't think anybody here knows it exactly without digging in the sources. As far as I can tell you are correct, it is based on InitialPreference.
I was going to wait to first understand this before asking about the change in opensuse-factory. But since I saw Gnome has the problem fixed it's pretty KDE specific now.
Gnome has a /etc/gnome_defaults.conf file, from the glib2-branding-openSUSE package, from which /usr/share/applications/defaults.list is created. So the default app for a MIME type in Gnome is well defined and constant even if the user installs new apps (the user can always explicitly change it). In KDE it seems openSUSE specifies the default apps... just installing them. So Kaffeine is the default KDE media player in openSUSE until the user install another one... after that the default media player changes, or not (depending of the alphabetical order?). It seems far from perfect.
Should we add InitialPreference entries to the apps we select as default one for KDE? In fact probably the correct thing would be to do that only for the KDE-specific apps, and set the desktop-agnostic default apps through a /usr/share/applications/mimeapps.list file. I just learn all this this afternoon, I'm wrong?
I would suggest rather discussing this with KDE upstream. -- Lubos Lunak openSUSE Boosters team, KDE developer l.lunak@suse.cz , l.lunak@kde.org -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
participants (2)
-
Cristian Morales Vega
-
Lubos Lunak