Version: unspecified (using KDE 4.4.5)
There is currently no easy way to make an application the default application for all of it's known file types. The only way to do so, requires that you manually set each mimetype to the application.
Two such examples of where this is useful are:
1) Handbrake (a movie converter app) currently sets itself as default for all movie files on fedora. Most users however probably want their default to be a movie player.
2) A user who previously preferred Dragon may wish to switch to VLC as the default easily.
Steps to Reproduce:
Using (1) As an example
1) Dragon Player and handbrake are installed, Handbrake is the current default. The user doesn't want to uninstall handbrake, because they need it for their portable media player
1) System Settings
2) Notice, Default applications WONT work here, because it only deals with handlers
3) Go to advanced, file associations
4) Expand Video.
5) Go through EVERY entry, select Dragon Player, move up, and apply.
6) Note, this doesn't scale well.. The more powerful an application is, the more difficult it is to set it default for everything.
The better way is:
2) Go to default Applications
3) (New) Switch to the NEW "set preferred application" settings, from the basic handlers
4) (New) A listing of the applications from the menu are displayed.
5) (New) Select your preferred application from the list
6) (New) Click set application as default (in this example, Dragon player).
7) (New) KDE internally sets Dragon player as primary application for all compatible mimetypes.
8) Note, regardless of how many mimetypes the app supports (could be hundreds), there are only 2 or 3 clicks, as opposed to hundreds potentially.
Microsoft introduced this in Windows Vista(?), and it is used quite often: http://www.nirmaltv.com/2009/01/31/how-to-set-up-default-programs-in-windows-7/
*** Bug 343859 has been marked as a duplicate of this bug. ***
Such a feature would also have to *prevent* other applications in changing their mimetype associations, no? In other words, mimetypes associated with, for instance, Dragon Player would have to be changed manually by the user.
This is desirable because many applications will switch default associations upon install, without asking; leaving the user (me) frustrated because I have to change them back. I once had an install associate video files with Kate!
*** Bug 396930 has been marked as a duplicate of this bug. ***
Windows actually has a nice UI for this feature. Example screenshot:
Perhaps worth using as inspiration?
now describes how to associate in single / multiple mode.
unfortunately, the crucial feature
which would be needed to be no nuisance by kicking out the old apps did not work for me.
Given that X-KDE-InitialPreference=3 can be made to work we're almost there.
Of course, a little GUI handling the .desktop files as suggested (like windows) would be awesome!
As requested, essentially a duplicate of Bug 232545.
*** This bug has been marked as a duplicate of bug 232545 ***