Bug 179462 - Konqueror lists applications twice in "open with" menu
Summary: Konqueror lists applications twice in "open with" menu
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-03 11:20 UTC by Richard Bos
Modified: 2009-02-10 15:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Applications listed twice in konqeuror's "open with" menu (178.39 KB, image/png)
2009-01-03 11:33 UTC, Richard Bos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Bos 2009-01-03 11:20:30 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

After upgrading to kde-4.1.87 (from 4.1.86) konqueror lists applications
twice in its "open with" (File -> open with) menu.  See attached screenshot.

What to do about this?

(related bug at openSUSE https://bugzilla.novell.com/show_bug.cgi?id=463326)
Comment 1 Richard Bos 2009-01-03 11:33:36 UTC
Created attachment 29857 [details]
Applications listed twice in konqeuror's "open with" menu
Comment 2 FiNeX 2009-01-04 14:33:25 UTC
It is due to a wrong file association setting.

What's if you go to konqueror->settings->file association and check the "HTML" mime type?

This is like bug #73532, and imho it is a dup.
Comment 3 Richard Bos 2009-01-04 14:53:22 UTC
Indeed for e.g. pdf there are 2 mimetypes:
x-gzpdf
pdf
x-bzpdf

for x-gzpdf there are 2 apps, but they are listed twice:
Okular
Okular
Ark
Ark

For pdf and x-bzpdf it is similar...  Is there a config file, that checked
and easily modified?

Why does this happen, this happened after upgrading from 4.1.86 -> 4.1.87.
This there a bug that results in those duplicated entries?
Comment 4 Richard Bos 2009-01-06 23:00:46 UTC
If I remove 1 of the Okular's and 1 of the Ark's from the list
Okular
Okular
Ark
Ark

The window let me do it.  Now when I submit the change, the systemconfiguration
is being updated.  At about 35% the update process stops and the removed Ark
and Okular or put back in the list.  But now the order is different, it is now:
Okular
Ark
Okular
Ark
Weird behaviour.... Can I change the mimetype association in a config file?
Comment 5 René Krell 2009-01-21 11:03:27 UTC
I can confirm this. Exactly the same with 4.1.96 on OpenSUSE 11.1.
Kicker shows each entry twice, and I get several mimetypes assigned two or more times in KDE file associations.
See also the following bug reports:
https://bugzilla.novell.com/show_bug.cgi?id=463326
https://bugzilla.novell.com/show_bug.cgi?id=465296
https://bugzilla.novell.com/show_bug.cgi?id=466318
Comment 6 David Faure 2009-02-04 16:35:21 UTC
SVN commit 921138 by dfaure:

Backport r915356+915400+915818:
fix duplicated applications in the K menu and in keditfiletype, because kded was
creating kservices with absolute paths and not letting local ones override global ones.
BUG: 179946
BUG: 179462
BUG: 182060


 M  +2 -4      kdecore/services/kservice.cpp  
 M  +7 -0      kdecore/services/kservice_p.h  
 M  +1 -1      kdecore/sycoca/ksycoca.cpp  
 M  +6 -2      kdecore/sycoca/ksycocaentry.cpp  
 M  +8 -1      kdecore/sycoca/ksycocaentry.h  
 M  +3 -1      kdecore/sycoca/ksycocaentry_p.h  
 M  +2 -6      kdecore/sycoca/ksycocafactory.cpp  
 M  +46 -21    kded/kbuildservicefactory.cpp  
 M  +2 -1      kded/kbuildservicefactory.h  
 M  +1 -1      kded/kbuildsycoca.cpp  
 M  +3 -3      kded/vfolder_menu.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=921138
Comment 7 Richard Bos 2009-02-05 19:50:44 UTC
Problem is after applying the rpm containing the fix.
After the apply the tool kbuildsycoca needs to be run, to rebuild the menu('s)


Comment 8 René Krell 2009-02-10 15:16:16 UTC
Fixed for me in the KDE 4.2 packages for OpenSUSE 11.1.