Adds a quick shutdown button to the top panel. One click opens the native GNOME Power Off dialog. Designed for power users who want fewer clicks.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
1. You shouldn't use d-bus for shutdown (line 41 `extension.js`): ```js import * as SystemActions from 'resource:///org/gnome/shell/misc/systemActions.js'; let systemActions = new SystemActions.getDefault(); systemActions.activatePowerOff(); ``` 2. Please use `connectObject()` and `disconnectObject()` so it is easier to track for cleanup (`extension.js` only). 3. Use `console.*` instead of `log()`. Logs should be only available on debug mode. For debug use `console.debug()` instead of `console.log()`: [Port Guide 45: Logging](https://gjs.guide/extensions/upgrading/gnome-shell-45.html#logging) 4. Please read [Extension Best Practices Guidelines](https://gjs.guide/extensions/review-guidelines/best-practices.html). Especially for the "Keep Timeout Removal Next to Creation". If you need any help with your extension you can ask us on: - [GNOME Extensions Matrix Channel](https://matrix.to/#/#extensions:gnome.org) - IRC Bridge: irc://irc.gimpnet.org/shell-extensions
Hi, I have changed the code and removed the timer function altogether to comply with the guidelines. Btw, Is D-Bus completely discouraged for simple extensions, as I have seen a popular extension using custom D-Bus services to handle similar tasks? I will use the timer version for my personal use. Thank you for taking time for reviewing this and giving feedback.