Open retrixe opened 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!
This may also be the solution to #2
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)./etc/systemd/system
which can run the Python daemon.grub.cfg
permissions, we can have a button to install the daemon's service file (the Python code can remain in the extension folder itself).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.