I just started using Raspbian Jessie on the Pi 3 and was wondering if there's a way to customize the labels on the Shutdown dialog so that clicking the labels ("Shutdown", "Reboot" or "Exit to command line") themselves cause the bullet point to become selected? Currently, it's necessary to click the small dot itself to select the bullet point, but it would be nicer if clicking that or the label itself would have the same effect.
Somebody wrote his/her own dialog and documentet it here:
formatting link
THere are open questions like: * Where is the source code * is this run as root * is it stable * What happens on updates * does it work on your machine
Maybe you could just take a look on your system at this location: /usr/bin/lxde-pi-shutdown-helper
Thanks, Stefan. Not being familiar with the language used to implement this dialog, I tried surrounding the text with HTML Label tags, but the tags themselves appeared in the resultant label text, so it looks like it is not HTML-based... but it occurred to me that I could make the third option ("Exit to command line" - the one I use most often) the selected button by default by setting its value to TRUE, so it's not so much of any issue any more.
I also glanced at the article you linked, and at some point in future I might take a stab at doing something similar.
Meanwhile, if the developer of this dialog is reading, here are a few suggestions for improvements:
Allow the bullet or the label alongside it to be clicked to select the option.
Save the previously-selected option and make it the default the next time the dialog is invoked, since users will typically perform the same action every time (shutting-down, rebooting or exiting to the command line).
As someone else pointed out, there's no need to have a minimize or maximize button on the End Session dialog, so disable or remove them.
It looks like the window manager is displaying the Minimize and Maximize buttons in all dialogs, regardless of any hints that are sent to it. I installed Gtk3 and wrote a simple replacement dialog that only requires a single click, and while the Maximize button is still present, it doesn't actually do anything if clicked.
Here's the source code if anyone cares to use it in place of the existing "/usr/bin/lxde-pi-shutdown-helper" file...
--- code starts here ---
#!/usr/bin/env python import gi, os gi.require_version('Gtk', '3.0') from gi.repository import Gtk
After doing a distro update this morning, I see that the Shutdown dialog has been much improved - thanks to the Pi team for that! The raspberry icon in the corner is a nice touch, as well.
At the risk of being a persistent nag, the only other "nice-to-have's" I can think of would be maybe to add a Cancel button, and allow the dialog to be dismissed by pressing Escape on the keyboard.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.