In the Cinnamon Desktop:
- What command or code is run in response to Alt+F2?
- In what file is this association stored?
- What command or code is run in response to the
rcommand in the command prompt window opened by Alt+F2?
Since posting this question, and with the help of the discussion following the earlier posted answer, I found the following answer in the Cinnamon source code:
/** * cinnamon_global_reexec_self: * @global: A #CinnamonGlobal * * Restart the current process. Only intended for development purposes. */ void cinnamon_global_reexec_self (CinnamonGlobal *global) { meta_restart (); } I have implemented access to this function as a bash command (restartcinnamon) by adding the following line to my .bashrc file:
alias restartcinnamon='dbus-send --type=method_call --print-reply \\ --dest=org.Cinnamon /org/Cinnamon org.Cinnamon.Eval \\ string:'\''global.reexec_self()'\''' \\ /usr/bin/dbus-send dbus-send --type=method_call --dest=org.Cinnamon /org/Cinnamon org.Cinnamon.Eval string:"global.real_restart()" Cinnamon, like GNOME from which it was forked, will restart the session when you type r into the Alt-F2 window. It's just telling it to re-execute itself, so it's not invoking a new command, but telling the Cinnamon window manager to re-execute.
pkill -HUP -f "cinnamon --replace". But I don't know if its exactly the same or if it just has the same effect.