Bug 1726283

Summary: xfce-polkit fails to launch
Product: [Fedora] Fedora EPEL Reporter: Joseph Nahmias <Joseph.Nahmias>
Component: xfce-polkitAssignee: Kevin Fenzi <kevin>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: jrybar, kevin, nonamedotc, 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: 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 Joseph Nahmias 2019-07-02 13:29:34 UTC
User-Agent:       Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Build Identifier: 

I have a new RHEL 7.6 server which I have configured with the epel repo. I have set up Xrdp and xfce on this server.  Now, when I connect via RDP, the desktop launches properly; however, xfce-polkit always just gives a blank error dialog.

When I run it from a terminal window, this is what I get:

$ /usr/libexec/xfce-polkit

** (xfce-polkit:2512): CRITICAL **: 09:20:52.415: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed

(xfce-polkit:2512): GLib-GObject-CRITICAL **: 09:20:55.982: g_object_unref: assertion 'G_IS_OBJECT (object)' failed


Reproducible: Always

Steps to Reproduce:
1. Log in to the system
or
2. Run /usr/libexec/xfce-polkit


Actual Results:  
Error.

Expected Results:  
No Errors.

$ rpm -qi xfce-polkit
Name        : xfce-polkit
Version     : 0.2
Release     : 8.el7
Architecture: x86_64
Install Date: Mon 01 Jul 2019 03:33:23 PM EDT
Group       : Unspecified
Size        : 38735
License     : GPLv2+
Signature   : RSA/SHA256, Sat 09 Jul 2016 02:06:25 PM EDT, Key ID 6a2faea2352c64e5
Source RPM  : xfce-polkit-0.2-8.el7.src.rpm
Build Date  : Thu 07 Jul 2016 12:33:40 PM EDT
Build Host  : buildvm-20.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://github.com/ncopa/xfce-polkit
Summary     : Simple PolicyKit authentication agent for Xfce
Description :
Simple PolicyKit authentication agent for Xfce.

Comment 2 Jan Rybar 2019-07-02 14:19:22 UTC
Hello,

since xfce-polkit is really not a part of RHEL shipped and is not maintained by Polkit Devel team, I cannot guarantee you a correct answer.
Try to find out if another polkit agent isn't running, e.g. polkit-gnome. If yes, kill them all, then try again. If that doesn't help, try uninstalling them (polkit-gnome, polkit-kde, polkit-qt etc.) and reinstalling xfce-polkit, as there can be only one agent initiated by the session manager (also binaries in /usr/libexec are not supposed to be run by users)

Anyway moving this BZ to responsible maintainer.

Thank you.
Jan Rybar

Comment 3 Joseph Nahmias 2019-07-02 18:26:15 UTC
I don't see any other agents running, just polkitd.

$ ps -ef | grep [p]olkit
polkitd  14438     1  0 Jul01 ?        00:00:02 /usr/lib/polkit-1/polkitd --no-debug

Comment 4 Joseph Nahmias 2019-07-17 19:56:19 UTC
Bump.  Any advice on this issue?

Comment 5 Kevin Fenzi 2019-07-17 22:18:31 UTC
I'm afraid not. Does it work as expected if you login directly to the console? Or is this a headless machine?

Comment 6 Raphael Groner 2019-07-25 01:42:52 UTC
> I have a new RHEL 7.6 server which I have configured with the epel repo.
> I have set up Xrdp and xfce on this server.

Do we support this kind of combination? My assumption is xfce4-polkit is not of much usefulness without the other Xfce elements. Please try to install a full Xfce desktop and reproduce.