Nova1545 / gnome-shell-extension-customreboot

A gnome-shell extension to add a "Custom Restart..." option to the shell system panel that allows you to choose what OS you want to boot into, after which it triggers the typical end session dialog for restart.
GNU General Public License v3.0
10 stars 5 forks source link

Use a daemon to avoid authentication and permission changes #1

Open retrixe opened 1 year ago

retrixe commented 1 year ago

We could write a daemon that the extension can talk to, to get boot entries and to reboot into a different boot entry. This will avoid needing a password prompt every time and avoid changing grub.cfg's permissions (which seems like an undesirable system change to me).

I would be interested in submitting a PR for this when I have free time to do so, just looking for feedback about the idea.

Nova1545 commented 1 year ago

This is a great idea. I agree that changing grub.cfg permission is undesirable system change to people (For me it doesn't matter). Not needing a password to reboot would be far less annoying. I think keeping the current code (at least for now) is a good idea, if it becomes to much of a hassle to maintain then we can remove it

A system daemon written in Python using D-Bus sounds perfect. Based off the GJS docs you can (I think) interact with D-Bus directly from the extension

The extension should also still pass on the Gnome Extension page aswell.

And PR would be greatly welcomed!

Nova1545 commented 1 year ago

This may also be the solution to #2