Giter VIP home page Giter VIP logo

gnome-shell-extension-customreboot's Introduction

Custom Reboot GNOME Shell Extension

Inspired by and based on patriziobruno/grubreboot-gnome-shell-extension.


Example

Bootloader Supported
systemd-boot Yes
GRUB Yes

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.

This extension needs permissions for gnome-shell to read your /boot partition, please verify your Linux distribution documentation.

Systemd-boot

It's able to set the one-shot default using bootctl set-oneshot ID.

The presented options are parsed from bootctl list.

When you select the operating system to reboot into, you'll be required to input your password because of required permissions to run bootctl which set EFI variables.

GRUB

It's able to set the default menu entry using grub-reboot title

The presented options are parsed from the grub config.

When you select the operating system to reboot into, you'll be required to input your password because of required permissions to run grub-reboot.

Caveats

I've only tested this on Arch Linux running gnome 3.38 and systemd-boot. Please let me know if you run into issues on other distros, bootloaders, and GNOME shell versions.

Pull requests welcome!

gnome-shell-extension-customreboot's People

Contributors

docquantum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gnome-shell-extension-customreboot's Issues

Get and take note of the current set and default option, or currently set option if user decides to cancel.

It should be known what options is default and has been changed to. With systemdboot, that can be seen with the '(default)' in the name, but with things like grub, that may not be the case.

Also, if the user cancels the reboot, it should show which one has been set.

This can also then be further improved by not setting the same option if it's already been set, and simply trigger a reboot.

Extension unable to read grub.cfg file

Installed this extension and found that it wouldnt load. I took a peak at the logs and it revealed that the extenstion couldnt read grub.cfg. I am running Ubuntu 21.10 and GNOME 40.4. Should the extension just be able to read the config? or do I have to change access perms to the file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.