Bug 500237
| Summary: | gpk-install-local-file doesn't continue running as root when told to | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mads Kiilerich <mads> |
| Component: | PackageKit | Assignee: | Richard Hughes <richard> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | lmacken, rhughes, richard, smparrish |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 2.27.2-1.fc11 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-05-11 21:17:46 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: | |||
|
Description
Mads Kiilerich
2009-05-11 20:53:56 UTC
I'm guessing if you log in as root, it works, but not with sudo. If you do "sudo gpk-install-local-file /home/hughsie/moo.rpm --verbose" then you get: TI:22:11:54 TH:0x90654c0 FI:gpk-install-local-file.c FN:main,122 - The name org.freedesktop.PackageKit was not provided by any .service files This means that the service is not running as the user root, which of course is the right thing to do. If you do sudo gpk-update-icon and then sudo gpk-install-local-file, then it might work, although this isn't a very good idea. You've got to remember that running PolicyKit clients under uid 0 or using sudo isn't a great plan at all. I'm not really surprised it doesn't work correctly. Ok. I'm beginning to grok what is going on, and I have almost accepted that it shouldn't work in this case. BUT the current user experirence in this case is bad. A fatal error message shouldn't be hidden behind a --verbose flag. Because it is a gui app it should even pop up as a messagebox. The current message is probably absolutely correct, but for users (like me) who doesn't understand the concept .desktop files and the runtime model (DBUS?) it isn't very helpful. I would suggest a message box saying "Fatal error: Could not connect to PackageKit service". That would have sufficient for me in the situation. (In reply to comment #2) > BUT the current user experirence in this case is bad. A fatal error message > shouldn't be hidden behind a --verbose flag. Because it is a gui app it should > even pop up as a messagebox. commit 255bc16adabce0bc74ec1802036b79ec2cf2a1bc Author: Richard Hughes <richard> Date: Wed May 13 08:51:29 2009 +0100 Pop up a modal dialog if any of the methods in gpk-install-foo fail. Fixes rh#500237 I agree, hiding the error behind a --verbose switch is bad form. gnome-packagekit-2.27.2-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/gnome-packagekit-2.27.2-1.fc11 gnome-packagekit-2.27.2-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |