Bug 1309094 - On startup, xfce-polkit is launched twice (Fedora Rawhide Xfce 20160214)
Summary: On startup, xfce-polkit is launched twice (Fedora Rawhide Xfce 20160214)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: xfce4-session
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-16 20:07 UTC by Giulio 'juliuxpigface'
Modified: 2016-03-08 19:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-08 19:51:13 UTC
Type: Bug


Attachments (Terms of Use)
xfce-polkit's empty window (594.97 KB, image/png)
2016-02-16 20:07 UTC, Giulio 'juliuxpigface'
no flags Details


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 78193 0 None None None 2016-02-17 10:31:10 UTC

Description Giulio 'juliuxpigface' 2016-02-16 20:07:18 UTC
Created attachment 1127714 [details]
xfce-polkit's empty window

Description of problem:
When launched, /usr/libexec/xfce-polkit opens an empty modal window, as shown in the attached screenshot.

According to "ps -aux", the software keeps running even after encountering this bug.

Version-Release number of selected component (if applicable):
xfce-polkit-0.2-6.fc24.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Boot Fedora Rawhide 24 (Xfce live)

Actual results:
This window pops up after the log in (and after launching xfce-polkit manually).

Expected results:
Ideally, no error windows should appear.

Comment 1 Giulio 'juliuxpigface' 2016-02-16 20:47:48 UTC
(In reply to Giulio 'juliuxpigface' from comment #0)
> 
> Steps to Reproduce:
> 1. Boot Fedora Rawhide 24 (Xfce live)
> 


In addition... It happens on the installed system too.

Comment 2 Kevin Fenzi 2016-02-16 21:26:03 UTC
I'll take a look, but you should not run xfce-polkit yourself directly. It should be dbus started when you need to authenticate something.

Comment 3 Raphael Groner 2016-02-17 10:31:11 UTC
"The caller of polkit_agent_listener_register() or similar is responsible for handling returned errors (and/or print them)." ¹

xfce-polkit does allow one instance only but there's no error returned from libpolkit for a second try, so the user gets an empty error message window. ²

Please check if you're already running an instance of xfce-polkit before you manually call it from a terminal. That first instance should run automatically by the autostart desktop file, we've used polkit-gnome instead in prior Fedoras. 

Can we close this bug as invalid?

¹ https://bugs.freedesktop.org/show_bug.cgi?id=78193
² https://github.com/ncopa/xfce-polkit/blob/master/src/xfce-polkit.c#L16

Comment 4 Giulio 'juliuxpigface' 2016-02-18 19:44:08 UTC
Kevin and Raphael, thank you for your comments.

This bug is also triggered right after the start of the Xfce's live session, without requiring an user's intervention. Therefore I'd not close this and investigate further: we might want to edit the description and triage it to the right component.

So, it seems like something launches xfce-polkit twice on startup.

Comment 5 Kevin Fenzi 2016-02-18 20:59:09 UTC
Yeah, which live media is that exactly please?

Comment 6 Giulio 'juliuxpigface' 2016-02-18 21:03:29 UTC
(In reply to Kevin Fenzi from comment #5)
> Yeah, which live media is that exactly please?

Here is it:

https://kojipkgs.fedoraproject.org/work/tasks/2261/12982261/Fedora-Live-Xfce-x86_64-rawhide-20160214.iso

Comment 7 Jan Kurik 2016-02-24 15:23:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 8 Kevin Fenzi 2016-03-05 20:03:12 UTC
I just tried: 

https://kojipkgs.fedoraproject.org//work/tasks/6095/13236095/Fedora-Xfce-Live-x86_64-24-20160305.0.iso

and I am not seeing this happen. It should just happen booting the live image right? Or where there any other steps?

Comment 9 Giulio 'juliuxpigface' 2016-03-08 19:51:13 UTC
It was happening right after the auto-login of the live image, without requiring other steps. And yes, I tested it with a recent ISO and I can confirm the issue wasn't reproducible.

Therefore, I close this bug.


Note You need to log in before you can comment on or make changes to this bug.