Bug 1434477

Summary: Opening rpm via nautilus leads to an error
Product: Red Hat Enterprise Linux 7 Reporter: Martin Krajnak <mkrajnak>
Component: gnome-softwareAssignee: Richard Hughes <rhughes>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact: Lenka Špačková <lkuprova>
Priority: high    
Version: 7.4CC: benl, jkoten, mkrajnak, ovasik, rhughes, tpelka
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Cannot install downloaded RPM files from *Nautilus* The *yum* backend to *PackageKit* does not support getting details about local files. As a consequence, when an RPM file is double clicked in the *Nautilus* file manger, the file is not installed, and the following error message is returned: Sorry, this did not work, File is not supported To work around this problem, either install the _gnome-packagekit_ package to handle the double-click action, or manually install the files using the *yum* utility.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-03 19:37:15 UTC Type: Bug
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:    
Bug Blocks: 1477211    
Attachments:
Description Flags
error_message
none
full log none

Description Martin Krajnak 2017-03-21 15:11:23 UTC
Created attachment 1265118 [details]
error_message

Description of problem:
Gnome-software is able to open rpm, but it leads to immediate error window.

Version-Release number of selected component (if applicable):
gnome-software-3.22.7-1.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.Download atom rpm from https://atom.io/download/rpm
2.open nautilus and open the .rpm file - or open directly via firefox

Actual results:
Error window - Sorry, this did not work, File is not supported

Expected results:
GS should open the file and install it

Additional info:
Same functionality is fully working with flatpaks

Comment 1 Richard Hughes 2017-06-15 13:41:40 UTC
Can you get the "killall gnome-software && gnome-software --verbose" debug output when you double click an rpm file please? Thanks.

Comment 2 Martin Krajnak 2017-06-15 14:01:45 UTC
Created attachment 1288082 [details]
full log

Here is an output generated after clicking the rpm, full log is attached above.
...

14:00:43:0048 As  run 0x3250370~GsPlugin::packagekit-local(gs_plugin_file_to_app)
14:00:43:0048 PK  role now get-details-local
14:00:43:0085 Gs  emitting global waiting
14:00:43:0088 Gs  emitting global querying
14:00:43:0088 Gs  (null) non-transient state now local
14:00:43:0089 PK  role now get-files-local
14:00:43:0104 Gs  emitting global waiting
14:00:43:0108 Gs  failed to call gs_plugin_file_to_app on packagekit-local: GetFilesLocal not supported by backend
14:00:43:0108 As  run 0x3250370~GsPlugin::flatpak(gs_plugin_file_to_app)
14:00:43:0109 Gs  not handling bundle as scope incorrect
14:00:43:0109 Gs  emitting global finished
14:00:43:0116 Gs  using main window
14:00:43:0122 Gs  failed to convert to GsApp: no application was created for /home/mkrajnak/Downloads/atom.x86_64.rpm
14:00:43:0234 Gs  plugin no longer recently active: packagekit-offline

Comment 3 Richard Hughes 2017-06-15 15:17:56 UTC
(In reply to Martin Krajnak from comment #2)
> GetFilesLocal not supported by backend

Ahh, so yum doesn't support this. Note, in RHEL 7 we're still using yum, as in the "exec /usr/bin/yum and scrape stdout" kind of thing. I don't think we want to fix this, it would be a lot of work.

Comment 11 Red Hat Bugzilla Rules Engine 2018-04-03 19:37:15 UTC
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.