EggSMClient is no good

Brian J. Tarricone brian at tarricone.org
Wed Jul 29 21:13:51 CEST 2009


On 07/28/2009 11:26 PM, Nick Schermer wrote:
> 2009/7/29 Brian J. Tarricone<brian at tarricone.org>:
>> Hey Nick,
>>
>> I just noticed that EggSMClient doesn't support SmRestartImmediately, which
>> is a bit of a showstopper.
>>
>> It seems to support it based on GNOME's non-standard .desktop file
>> extensions, by looking for an X-GNOME-AutoRestart key.  Obviously we don't
>> support this.
>>
>> I can attempt to whip up a patch for egg_sm_client_set_mode(), but it's
>> gonna be kinda a hack.  What do you think?
>
> I have no strong opinion about eggsm at all, so hacks are fine by me.
> IMHO we should make it 'work' and not spend more time on the code than
> that. It's a temporarily solution (although we will probably stick
> with it for a year of 2). So go ahead, hack whatever is needed ;-).

Ok, checked in a fix.  Apps that need this should call:

egg_sm_client_set_mode(EGG_SM_CLIENT_MODE_RESTART_IMMEDIATELY);

*before* calling egg_sm_client_get().

	-brian



More information about the Xfce4-dev mailing list