LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gdm-safe-restart

safely restart GDM only when no sessions active

TLDR

Safely restart GDM
$ sudo gdm-safe-restart
copy

SYNOPSIS

gdm-safe-restart

DESCRIPTION

gdm-safe-restart provides a safer alternative to gdm-restart by only restarting the GNOME Display Manager when no users have active graphical sessions. This prevents accidentally terminating user work and ensures the restart only occurs when the system is at the login screen.If any users are currently logged in, the command will check for active sessions and refuse to restart GDM, protecting users from losing unsaved work. This makes it appropriate for automated maintenance scripts or situations where you want to restart the display manager but only when it's safe to do so.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid