← Back to team overview

lubuntu-desktop team mailing list archive

Re: 'Ask me' option in power management preferences doesn't not open the logout dialog

 

Am 28.05.2010 10:28, schrieb Zeraxeal:
> I tried to make a patch for it...and it works, but it's REALLY ugly.
> 
> http://paste.pocoo.org/show/219219/
> 
> <http://paste.pocoo.org/show/219219/>The link leads to the diff file that
> I've created, and it's basically a copy-and-paste from lxsession-logout's
> method to check for lxsession, and if there is a session running, it will
> call for a system() function to "lxsession-logout -b
> /usr/share/lubuntu/images/logout-banner.png -s top"
> 
> Not pretty, and possibly crazy (as I'm not a coder at all so I don't know
> how 'conventional' coding is like), but it worked for me :-/
> 

Yeah it is a quick and dirty patch only. It would be nice to have an
global lxde logout command, which greps its wallpapers and settings from
a config file instead of a command line parameter.

> On Fri, May 28, 2010 at 2:45 AM, Leszek Lesner <leszek.lesner@xxxxxx> wrote:
> 
>> Am 26.05.2010 20:08, schrieb Zeraxeal:
>>> The thing is, power button (and suspend button for that matter) works as
>> it
>>> should when the option is set to hibernate, shutdown or suspend. This
>>> problem only occurs when the option is set to 'Ask me'.
>>>
>>> Although editing openbox config file will definitely solve this problem,
>>> shouldn't we be able to have that option configurable in the power
>> manager
>>> in the first place? Especially when all of the other options work as
>>> intended.
>>
>> I think it needs a patch then for the power manager to detect lxde and
>> then choose the right dialog to show, when the power button is pressed.
>> It would be better to have an lxde specialized power manager.
>>
>>>
>>> On Thu, May 27, 2010 at 2:49 AM, Leszek Lesner <leszek.lesner@xxxxxx>
>> wrote:
>>>
>>>> Am 26.05.2010 17:08, schrieb Zeraxeal:
>>>>> Although the problem seems to be tied with gnome-power-manager, I'll
>> post
>>>>> here since it is used as the default power manager.
>>>>>
>>>>> The default option for 'Action when power button is pressed' is 'Ask
>> me',
>>>>> which usually brings out the logout dialog of GNOME desktop.
>>>>> However, this option does not do anything in Lubuntu - the LXDE logout
>>>>> dialog does not appear.
>>>>>
>>>>> The other options, such as hibernate, suspend and shutdown, work as
>> they
>>>>> should, so I don't think the problem lies with the kernel or the power
>>>>> button.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~lubuntu-desktop
>>>>> Post to     : lubuntu-desktop@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~lubuntu-desktop
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>> For the powerbutton to do anything, capture the keycode with xev (run it
>>>> in terminal and press the button, it will give you a keycode).
>>>> With the keycode you can then link the appropiate key to the lxde-logout
>>>> executable from within openbox configuration file.
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~lubuntu-desktop
>>>> Post to     : lubuntu-desktop@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~lubuntu-desktop
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~lubuntu-desktop
>>> Post to     : lubuntu-desktop@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~lubuntu-desktop
>>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~lubuntu-desktop
>> Post to     : lubuntu-desktop@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~lubuntu-desktop
>> More help   : https://help.launchpad.net/ListHelp
>>
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~lubuntu-desktop
> Post to     : lubuntu-desktop@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~lubuntu-desktop
> More help   : https://help.launchpad.net/ListHelp




Follow ups

References