Bug 109248 - changed file asociations are not remebered
Summary: changed file asociations are not remebered
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-18 11:56 UTC by Gianluca Rossetti
Modified: 2009-07-13 14:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluca Rossetti 2005-07-18 11:56:17 UTC
Version:           3.4.0.5 (using KDE KDE 3.4.0)
Installed from:    Fedora RPMs
OS:                Linux

Since I don't like KGhostView to read pdf documents, I took the following steps:

- right-clicked on the file 
- choose "Open with" menu 
- choose the "Other" menu item.
- checked che box "remember application association for this type of file"
- selected Kpdf as application
- closed the document opened with Kpdf.

The file is still opened with KGhostView, therefore it seems that konqueror does not remember file associations.
Comment 1 Thiago Macieira 2005-07-18 15:36:25 UTC
I can confirm this. Trunk 433373.

Also note I did see the "Updating configuration window".

Running kbuildsycoca and starting konqueror fresh from the terminal didn't help either.
Comment 2 Martin Koller 2006-12-31 15:50:41 UTC
Testing with 3.5.5 I see the following:
After chosing open with ... <some app>, the file I right clicked is opened with that selected app. Also, the association is stored on PDF file types, but the problem is: the stored association is appended (as LAST) to the list of applications which can handle this filetype, and if there is already another one on top, this will still be used.
The fix must be to put the new association as first item in the list.
Comment 3 Elmar Stellnberger (AT/K) 2007-08-22 10:23:52 UTC
In deed it seems that some corruption can happen to the file association database. Sometimes KDE simply does not remember changes to file associations.
Perhaps there should be some way to check the consistency of the file association database, because I believe that this kind of unpredictable behaviour results from some kind of internal inconsistency. Last time it behaved like this:
xy.flv: right click, properties, claw button; set icon & players(kaffeine,gxine,xine,mplayer), OK
nothing happened: neither icon changed nor flvs associated with stated players
another try: clicked on apply multiple times after each change:
everything seemed to be set correctly at first.
little time later tried to open flvs again: assocition with players lost; changes to icon still present.

I have already experienced things like these multiple times !
Comment 4 Elmar Stellnberger (AT/K) 2007-08-22 10:25:30 UTC
Sometimes changes to file associations require multiple attempts, another time they are simply forgotten.
Comment 5 Elmar Stellnberger (AT/K) 2007-08-22 11:23:23 UTC
KDE control center shows that two mimetypes have been created for *.flv/*.FLV:
applicataion/x-kdeuser5: changes to players saved here (kaffeine, gxine, MPlayer) assoc with xine player lost
applicataion/x-kdeuser6: icon saved here
Konqueror expresses applicataion/x-kdeuser6 only.
Comment 6 Elmar Stellnberger (AT/K) 2007-08-22 11:50:27 UTC
> kbuildsycoca
kbuildsycoca running...
Reusing existing ksycoca
kio (KService*): WARNING: The service/mime type config file
application/x-kdeuser7.desktop
does not contain a ServiceType=...
or MimeType=... entry
Comment 7 Elmar Stellnberger (AT/K) 2007-08-22 11:59:06 UTC
> cat ~/.kde/share/mimelnk/application/x-kdeuser5.desktop
[Desktop Entry]
Comment=Flv Datei
Hidden=false
Icon=
MimeType=application/x-kdeuser5
Patterns=*.flv;*.FLV
Type=MimeType

> cat ~/.kde/share/mimelnk/application/x-kdeuser6.desktop
[Desktop Entry]
Comment=Flv Datei
Hidden=false
Icon=video
MimeType=application/x-kdeuser6
Patterns=*.flv;*.FLV
Type=MimeType

> cat ~/.kde/share/mimelnk/application/x-kdeuser7.desktop
[Desktop Entry]
X-KDE-AutoEmbed=false
Comment 8 Elmar Stellnberger (AT/K) 2007-08-22 12:33:58 UTC
> desktop-file-validate ~/.kde/share/mimelnk/application/x-kdeuser5.desktop
/home/elm/.kde/share/mimelnk/application/x-kdeuser5.desktop: error: required key "Encoding" not found
/home/elm/.kde/share/mimelnk/application/x-kdeuser5.desktop: error: required key "Name" not found
/home/elm/.kde/share/mimelnk/application/x-kdeuser5.desktop: warning: file specifies "Type=MimeType", usage of the "MimeType" value for "Type" is not recommended, since it has been deprecated
/home/elm/.kde/share/mimelnk/application/x-kdeuser5.desktop: warning: file contains key "Patterns", usage of this key is not recommended, since it has been deprecated

> desktop-file-validate ~/.kde/share/mimelnk/application/x-kdeuser6.desktop
/home/elm/.kde/share/mimelnk/application/x-kdeuser6.desktop: error: required key "Encoding" not found
/home/elm/.kde/share/mimelnk/application/x-kdeuser6.desktop: error: required key "Name" not found
/home/elm/.kde/share/mimelnk/application/x-kdeuser6.desktop: warning: file specifies "Type=MimeType", usage of the "MimeType" value for "Type" is not recommended, since it has been deprecated
/home/elm/.kde/share/mimelnk/application/x-kdeuser6.desktop: warning: file contains key "Patterns", usage of this key is not recommended, since it has been deprecated
Comment 9 Elmar Stellnberger (AT/K) 2007-08-22 12:43:27 UTC
package: kdebase3-3.5.7-64.1, kde 3.5.7, release 64.1
Comment 10 Henrik Skov Midtiby 2008-05-15 13:09:29 UTC
I cannot reproduce this on ubuntu 8.04 with KDE / Konqueror version 4.0.3.
Comment 11 techo 2008-05-18 13:22:49 UTC
confirm on KDE 4.0.74 svn trunk r808533 (qt4.4 final)
Comment 12 FiNeX 2008-05-19 15:52:20 UTC
I've tested this on KDE 4 (trunk, r809608).

The program list for PDF is:
kpdf
ligature
okular

I've set the "remember option" for open a PDF with "okular". 
but after PDF are back opened with kpdf.

I've tried to remove all associations from a PDF file, but settings are not remembered.

I've tried to associate PDF to mplayer, both dolphin and konqueror crashed without any backtrace.

File association need to be improved :-)
Comment 13 FiNeX 2009-07-13 14:44:11 UTC
One year later the situation has been improved a lot and now konqueror uses the right application