Bug#261753: konqueror behavior on file associations
I'm trying to find a work-around for the file association problems, and I
wonder if a description of konqueror behavior could be usefull to the
kde-team. In fact, I never know if I post a bug to kde-debian-bts because the
problems are usually fixed in the next upstream version. But let's try.
I'm tracking the files created in ~/.kde/share/applnk/hidden, and it's not
funny ;-) I want to create a new association with xine, with a different set
of command line options, so I click on Configurations/Configure/File
Associations, choose audio/x-mp3, click on add, or /usr/bin/xine, and there's
a new item, kaffeine. Great! Now there is a new file
~/.kde/share/applnk/hidden/xine-2.desktop. It's like that:
$ cat xine-2.desktop
[Desktop Entry]
Exec=/usr/bin/xine
InitialPreference=9
Name=xine
Terminal=false
Type=Application
Great. If I just click OK, the file is changed and looks like that:
$ cat xine-2.desktop
[Desktop Entry]
Exec=/usr/bin/xine
InitialPreference=9
MimeType=audio/x-mp3
Name=xine
Terminal=false
Type=Application
So, there's a new line, MimeType.
Now, if I open again konqueror's configuration and open the edit window to the
new xine association, choose the third tab 'Application' and add a new
mimeType, x-wav, for instance, and click add, ok and ok, the file xine is not
touched! Of course, there's no new xine association for the x-mp3 file!
So I try again. I edit the xine association under audio/x-mp3 and remove the
x-mp3 association before adding x-wav. No difference. So, I suppose the mime
type association editor for the .desktop files is not working at all.
Then, I close konqueror and edit xine-2.desktop to change the line
MimeType=audio/x-mp3 to
MimeType=audio/x-mp3;audio/x-wav
Fine; I open konqueror and the new xine association still appears only
associated to x-mp3; but if I open the mime type association editor I can see
the new xine supports x-wav files.
But - I discovered the way out just now! - if I create a new file association
for x-wav, with the same program name (the Exec line of the .desktop file),
it makes the right thing: the file xine-2.desktop is changed with the new
Mime type, and everything works fine. It's my workaround!
There's still two little related problems. If I change the 'Exec' line on
the .desktop file or on konqueror configuration, e.g.:
Exec=/usr/bin/xine --with-some-options
Then, I have to type exactly the same line to create the new association;
else, konqueror creates a new file, xine-3.desktop. And even if you remove
all associations for a .desktop file, it isn't removed from disk.
That's it. You're doing an excellent job!
Oh, and I think the bugs 261753, 306618, 264189 and 275194 are the same.
Tiago Saboga.
Reply to: