Bug 457783

Summary: mime-type/extension binding for .rpm is wrong
Product: [Fedora] Fedora Reporter: Juha Tuomala <tuju>
Component: kde-settingsAssignee: Rex Dieter <rdieter>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bnocera, kevin, ltinkl, rdieter, than, tuxbrewr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: KDE 4.2.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-19 11:42:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 474598    
Bug Blocks:    

Description Juha Tuomala 2008-08-04 16:14:11 UTC
Description of problem:
Clicking a page with rpm packages sends rpm mime type

application/x-rpm

over http. Currently f9 suggests 'Archive Manager' to 
handle that file format which is wrong.

Version-Release number of selected component (if applicable):
kde-settings-4.0-25.fc9.noarch

How reproducible:
always before you change your personal preferences.

Expected results:
launch the default fedora pkg tool, whatever that in this 
release happens to be...sigh.

Comment 1 Steven M. Parrish 2008-09-25 23:11:55 UTC
Any movement on this issue?

Comment 2 Kevin Kofler 2008-09-26 03:44:48 UTC
KDE 4 uses the shared-mime-info data. This is probably an issue in either shared-mime-info or gnome-packagekit.

Comment 3 Bastien Nocera 2008-09-27 12:17:12 UTC
$ grep application/x-rpm /usr/share/applications/*
/usr/share/applications/defaults.list:application/x-rpm=gpk-install-file.desktop

PackageKit is already the GNOME default for RPM files. Get KDE to use the defaults.list file, or change whatever they use to select the default applications. Not a shared-mime-info or PackageKit problem.

Comment 4 Rex Dieter 2008-09-27 12:32:14 UTC
kde uses it's own (mostly empty atm) defaults.list, reassigning -> kde-settings

Comment 5 Steven M. Parrish 2009-02-06 15:41:31 UTC
Ping?

Comment 6 Rex Dieter 2009-02-06 15:57:05 UTC
Ick, looks like defaults.list hacking doesn't work on kde4 (seems we need to add a mimeapps.list)

Another parallel approach would be to add (something like):
InitialPreference=5
to kpackagekit.desktop

And alternatively removing x-rpm mimetype from ark.desktop

Comment 7 Rex Dieter 2009-02-06 16:29:41 UTC
OK, 
kpackagekit-0.4.2-0.2.20090128svn.fc11 built with InitialPreference
and added mimeapps.list to kde-settings upstream svn.

I'll let these simmer a bit, and then backport these mods to F-9/F-10 too, adding as kde42 blocker.

Comment 8 Kevin Kofler 2009-02-09 18:34:55 UTC
This is fixed in the iteration of the KDE 4.2 testing updates which hit testing the day before yesterday, tracking as such and removing from blocker.