Bug 391183

Summary: package-manager.desktop should handle application/x-redhat-package-manager
Product: [openSUSE] openSUSE 11.0 Reporter: Forgotten User vs5edErKRK <forgotten_vs5edErKRK>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Major    
Priority: P3 - Medium CC: ma, mail, wolfgang
Version: RC 1   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: testapp

Description Forgotten User vs5edErKRK 2008-05-16 07:24:56 UTC
1) With firefox surf to www.skype.com
2) Click download
3) Click openSUSE 10+
4) Open with Install Program (Standard)
5) Click OK
6) File fetch error: /tmp/skype-2.0.0.68-suse.i586-19.rpm could not be opened because the associated help prograqm doesn't exist. Change assosiation in your settings.
Comment 1 Wolfgang Rosenauer 2008-05-16 08:20:04 UTC
Firefox is finding the application referenced in package-manager.desktop.
Executing package-manager should fire up yast2 to install the package but:

Error: helperAppNotFound, type=2 , listener=0x8232418, rv=0x80520012
       path='/tmp/skype-2.0.0.68-suse.i586-2.rpm'
Comment 2 Wolfgang Rosenauer 2008-05-16 10:18:00 UTC
OK, strange thing:

gnome_vfs_mime_get_default_application("application/x-redhat-package-manager")
doesn't seem to return anything.
http://mxr.mozilla.org/seamonkey/source/toolkit/system/gnome/nsGnomeVFSService.cpp#214

while other gnome_vfs* functions return the correct application it seems.
Comment 3 Wolfgang Rosenauer 2008-05-16 10:18:57 UTC
Created attachment 215902 [details]
testapp

Could you please run this test application and post what it returns.
Comment 4 Forgotten User vs5edErKRK 2008-05-16 10:28:38 UTC
It opens a dialog window called "Run program" that says (translated from Swedish):
This link needs to be opened by a program. Send to:
Choose a program: Choose....

And further down:
Remember my choise for file-links.
Comment 5 Forgotten User vs5edErKRK 2008-05-16 10:48:09 UTC
Comment #4 was when I saved it with Firefox and ran it from the file fetcher (not sure thats the English name (anyhow - where I see my downloads in Firefox.

If I click on the downloaded file a dialog opens thet says:
Open with:

Known programs

and then shows my program menu

and a check box Run i terminal

and Remember program binding for this file type.
Comment 6 Wolfgang Rosenauer 2008-05-16 10:57:54 UTC
please run the testapp gnome-vfs in a terminal since it simply writes its output to the terminal. It's not a graphical application.
Comment 7 Forgotten User vs5edErKRK 2008-05-16 11:02:53 UTC
OK.
inge@svensson:~/Desktop> ./bug-391183_gnome-vfs
Searching default handler for application/x-redhat-package-manager
No application found
Comment 8 Wolfgang Rosenauer 2008-05-16 11:16:14 UTC
OK, that is the underlying issue.
So this bug has actually two components:
1. Firefox shouldn't offer an application if it can't be launched later
   (Firefox is using different methods for finding and launching in that
   special case.)
2. gnome-vfs should actually find a default application for that mime-type
   (which is not a Firefox issue)

We should fix 2 short-term and I'll look into 1. afterwards.

2. is caused by /usr/share/applications/package-manager.desktop not specifying the mime-type www.skype.com is using for serving the RPMs:

MimeType=application/x-rpm;
should be extended by

MimeType=application/x-rpm;application/x-redhat-package-manager;

That file belongs to package libzypp and therefore reassigning to zypp.

(Please assign back when the desktop file is fixed!)
Comment 9 Wolfgang Rosenauer 2008-05-16 11:18:25 UTC
(it's not really "major" but it's very easy to fix so trying to get attention)
Comment 10 Rosario Lombardo 2008-06-06 10:00:35 UTC
*** Bug 397822 has been marked as a duplicate of this bug. ***
Comment 11 Rosario Lombardo 2008-06-06 10:03:09 UTC
The same on openSUSE 11 RC.
https://bugzilla.novell.com/show_bug.cgi?id=397822
Comment 12 Wolfgang Rosenauer 2008-06-06 10:32:45 UTC
I really wonder why such an easy thing to fix wasn't touched the last three weeks and now it's most likely too late.
Comment 13 Stephan Kulow 2008-06-06 11:06:56 UTC
because so many less easy things were left to fix?
Comment 14 Michael Andres 2008-06-06 11:52:48 UTC
fixed in libzypp-4.26.4