cinnamon-session-quit
Log out, shutdown, or restart Cinnamon session
SYNOPSIS
cinnamon-session-quit [OPTIONS]
PARAMETERS
--logout
Log out of the current session.
--shutdown
Shut down the system.
--reboot
Reboot the system.
--suspend
Suspend the system.
--hibernate
Hibernate the system.
--switch-user
Switch to another user.
--power-off
Power off the system. (Equivalent to --shutdown)
--no-prompt
Execute the action without prompting the user.
--help
Show help options.
--version
Show version number and exit.
DESCRIPTION
The cinnamon-session-quit command is a utility used to initiate the process of logging out of the current Cinnamon desktop environment session. It provides options to log out, shut down, reboot, suspend, hibernate, or switch users. The command is designed to interact with the Cinnamon session manager to perform these actions in a controlled manner. Without any options, it will usually present a graphical dialog for the user to choose an action. When used with specific options, it can perform the action directly from the command line. This command is an essential part of the Cinnamon user experience, offering a convenient way to manage the session's lifecycle.
Using cinnamon-session-quit from the command line allows you to script session management operations, or to integrate them into custom tools and utilities. For example, you could create a script that automatically suspends the system after a period of inactivity. The options allow for different actions to be triggered, giving the user a direct way to change the state of the current session.
CAVEATS
The execution of shutdown, reboot, suspend, and hibernate requires appropriate privileges. If the user does not have sufficient permissions, the command may fail or prompt for administrative credentials.
GRAPHICAL INTERFACE
When executed without any parameters, cinnamon-session-quit typically opens a graphical dialog providing options for logging out, shutting down, rebooting, suspending, hibernating or switching users. The precise appearance and functionality of this dialog may vary depending on the Cinnamon version and configuration.
SCRIPTING
The cinnamon-session-quit command is very useful in scripts when automation of certain events is required. For example, you could create a script to hibernate after 30 minutes of inactivity, and run it in the background.
SEE ALSO
gnome-session-quit(1), shutdown(8), reboot(8), systemctl(1)