Bug 1580984
Summary: | xfce-polkit crashes directly | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | ben haubeck <bhaubeck> | ||||
Component: | xfce-polkit | Assignee: | Kevin Fenzi <kevin> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 28 | CC: | kevin, projects.rg | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-05-23 19:05:43 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: | |||||||
Attachments: |
|
Description
ben haubeck
2018-05-21 22:33:59 UTC
Created attachment 1439786 [details]
strace /usr/libexec/xfce-polkit &>tmp/stace_xfce-polkit
maybe xfce-polkit is only the victim of something else, that went wrong, because this should "just work", right: ben@trouble2> systemctl --user Failed to list units: Process org.freedesktop.systemd1 exited with status 1 [1] ben@trouble2> the cause for failing "systemctl --user" might be ben@trouble2> echo $XDG_SESSION_ID ben@trouble2> ben@trouble2> rpm -qa |grep systemd ~ python3-systemd-234-5.fc28.x86_64 systemd-container-238-8.git0e0aa59.fc28.x86_64 fail2ban-systemd-0.10.2-1.fc28.noarch kcm_systemd-1.2.1-10.fc28.x86_64 systemd-pam-238-8.git0e0aa59.fc28.x86_64 oci-systemd-hook-0.1.16-1.git05bd9a0.fc28.x86_64 systemd-bootchart-233-1.fc28.x86_64 systemd-libs-238-8.git0e0aa59.fc28.x86_64 python-systemd-doc-234-5.fc28.x86_64 rpm-plugin-systemd-inhibit-4.14.1-7.fc28.x86_64 systemd-238-8.git0e0aa59.fc28.x86_64 libreport-plugin-systemd-journal-2.9.5-1.fc28.x86_64 python2-systemd-234-5.fc28.x86_64 systemd-udev-238-8.git0e0aa59.fc28.x86_64 it looks like that the XDG_SESSION_TYPE must be set to (in my case): XDG_SESSION_TYPE="wayland dbus-run-session xfce4-session" but it was also empty. as I have set it manually and started a xfce-session manually afterwards, policykit worked right away without complaining. now I only have to carve out, where XDG_SESSION_TYPE is getting set... (In reply to ben haubeck from comment #4) … > now I only have to carve out, where > > XDG_SESSION_TYPE > > is getting set... The XDG environment is usually a job of the display manager. Can you reproduce with gdm as the default of the XFCE spin? https://www.reddit.com/r/archlinux/comments/4efx1h/how_to_actually_start_gnome_on_wayland_without_a/ (In reply to ben haubeck from comment #1) > the cause for failing "systemctl --user" might be > > ben@trouble2> echo $XDG_SESSION_ID > ben@trouble2> It seems you try to use Wayland. Indeed, systemd has a special handling for Wayland sessions. https://www.freedesktop.org/software/systemd/man/pam_systemd.html You could also try the tweaks mentioned for ArchLinux, no guarantee for Fedora: https://wiki.archlinux.org/index.php/GNOME#Wayland_sessions Well, I don't have any idea if upstream has any intentions to support wayland. Sorry, better try with lightdm instead of gdm or whatever display manager. so, you aren't supposed to call /usr/libexec/xfce-polkit directly, so thats not expected to work. You can try running something with 'pkexec' to test, ie 'pkexe id' should call pokit, using xfce-polkit and ask you for authentication then run 'id'. I'm assuming thats not working anymore, which makes me think this might be a duplicate of bug 1581495 Do you have 'pam-kwallet' installed? If you disable or remove that package and logout/back in does it start working? Maybe modify autostart desktop file to properly work with wayland? But I got information that XFCE in general does not support wayland (yet), officially. @Kevin, comment7: you are great, thx a lot! after removing pam-kwallet that was just there (I assume), because I tried out KDE years ago, it worked flawlessly again! thx! ben Thank all the folks that tracked down that other bug. ;) It was a weird one... Glad it's working for you now. *** This bug has been marked as a duplicate of bug 1581495 *** |