! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Several XFCE applications appear irresponsible after communicating with a daemon
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Alberto Salvia Novella 2014-07-26 18:02:48 CEST
Several programs in Xfce have a daemon mode call gtk_init() before fork()ing.

This is unsafe, and when it goes wrong this will typically manifest as the daemon hanging shortly after forking, and appearing to simply do nothing at all.
Comment 1 Eric Koegel editbugs 2014-07-27 21:34:44 CEST
commit 216a5b750ccbe9fda98e0456a607230cd8c52303
Author: Eric Koegel <eric.koegel@gmail.com>
Date:   Thu Jun 26 19:46:46 2014 +0300

    Fork before gtk/dbus init
    
    https://mail.xfce.org/pipermail/xfce4-dev/2014-May/030715.html
    has the rational for the change.

http://git.xfce.org/xfce/xfce4-power-manager/commit/?id=216a5b750ccbe9fda98e0456a607230cd8c52303

So it shouldn't have that issue anymore. Do you still have startup issues with xfpm using the code from git/master? We haven't done a dev release with the commit in yet.
Comment 2 Alberto Salvia Novella 2014-07-28 12:40:13 CEST
In <https://bugs.launchpad.net/ubuntu/+source/xfce4-volumed/+bug/1347272/comments/12> I have asked the affected users to test the patch and leave a comment about their experience in this bug tracker.

Thank you :)
Comment 3 Jani Välimaa 2014-07-28 13:32:39 CEST
Patch mentioned in comment 1 fixes xfce4-power-manager segfault at startup in Mageia Cauldron [1]. Version in Cauldron is 1.3.0 + UPower 0.99 patch from git [2].

[1] https://bugs.mageia.org/show_bug.cgi?id=13602#c1
[2] http://git.xfce.org/xfce/xfce4-power-manager/commit/?id=ccb06f6fd3ab06
Comment 4 Eric Koegel editbugs 2014-08-08 18:42:18 CEST
Thanks for confirming it Jani, making resolved.

Bug #11044

Reported by:
Alberto Salvia Novella
Reported on: 2014-07-26
Last modified on: 2014-08-08

People

Assignee:
Ali Abdallah
CC List:
2 users

Version

Version:
Unspecified

Attachments

Additional information