[gnome-packagekit] [apper] not working with OpenRC
i'm trying to use either gnome-packagekit or apper in a parabola openrc installation , as graphical front-ends of packagekit. (filing them together as i'm guessing the problem is similar)
when trying to perform an action that would require authentication, `gnome-packagekit` doesn't ask for it and is unable to do it, and `apper` does send a notification saying `Failed to obtain authentication`.
from what i have read, it seems to be something related to polkit.
`polkit-elogind` and `elogind-openrc` are installed, and the elogind service is running.
$ ps aux | grep elogind root 2133 0.0 0.0 9840 2564 ? S 12:42 0:00 elogind-daemon $ ps aux | grep polkit polkitd 2588 0.0 0.6 1834260 23148 ? Sl 12:42 0:00 /usr/lib/polkit-1/polkitd --no-debug
when running `packagekit` directly from the command line, e.g. `pkcon remove pd` i do get an authorization request prepended with a message like the following when trying to delete a package:
==== AUTHENTICATING FOR org.freedesktop.packagekit.package-remove ====
if i don't authenticate and check the processes running, i can see:
root 1341 0.0 0.1 30640 5136 pts/5 S+ 23:25 0:00 /usr/lib/polkit-1/polkit-agent-helper-1 espiropapa espiropapa 1367 0.0 0.0 6284 2344 pts/2 S+ 23:25 0:00 grep polkit polkitd 2588 0.0 0.6 1834260 23148 ? Sl 12:42 0:00 /usr/lib/polkit-1/polkitd --no-debug
when i authenticate, it works as expected.
the `polkit-agent-helper-1` doesn't appears (or doesn't stay for me to check) when using either gnome-packagekit or apper.
when running apper from the command line, i get these possibly relevant erros when attempting the actions:
apper.lib: PackageKit::Transaction::StatusUnknown PackageKit::Transaction::RoleRefreshCache kf5.kwidgetsaddons: Invalid pixmap specified. apper.lib: errorCode: PackageKit::Transaction::ErrorNotAuthorized "Failed to obtain authentication." apper.lib: PackageKit::Transaction::ExitFailed PackageKit::Transaction::RoleRefreshCache
to finish, i'm doing all this using xfce4.
Updated by bill-auger 5 months ago
gnome-packagekit works ok with systemd - this must be a openrc/polkit issue
do you have the [nonsystemd] repo enabled? if not, enable it
then ensure that you have all of the following packages installed - these are the bare minimum for an openrc desktop system
# pacman base-openrc systemd-libs-dummy systemd-dummy polkit-elogind openrc-desktop --needed
Updated by bill-auger 5 months ago
- Status changed from unconfirmed to confirmed
this program prints absolutely nothing to the terminal and gives no indications of errors in the GUI - despite all the helpful information it gave me, i was able to get 'gnome-packagekit' working on my openrc system by launching it under 'gksu'
# pacman -S gksu $ gksu gpk-application
if you are happy with that solution, just change the Exec= line in /usr/share/applications/org.gnome.Packages.desktop to look like this for now:
if you just want a GUI to install packages, i would suggest to use 'octopi' - that is the one that we would like to support as the official package manager GUI - it also uses a GUI password prompt like gksu; but it only asks for the password when it needs to, rather than running the entire program as root
that being said, this is a bug that should be adresseed somehow - i will leave this bug report open for now - when LXDE loads, i get an error message:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
ive seen that before. and ive fixed it before; but i forget how