Skip to main content
Formatting
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

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

https://github.com/linuxmint/cinnamon/blob/master/src/cinnamon-global.c#L1130Cinnamon 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 (); } 
/** * 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 (restartcinnamonrestartcinnamon) by adding the following line to my .bashrc.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 
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 

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

https://github.com/linuxmint/cinnamon/blob/master/src/cinnamon-global.c#L1130

/** * 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 

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 
Source Link
DrM
  • 345
  • 3
  • 13

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

https://github.com/linuxmint/cinnamon/blob/master/src/cinnamon-global.c#L1130

/** * 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