I'm looking for a way to force shutdown the system using a single keyboard shortcut, nothing else, in ubuntu17.10 using GNOME. I tried adding a keyboard shortcut using the command found here : Are there any Keyboard Shortcuts to Shutdown? which is
gnome-session-quit --power-off --force
--force option doesn't seem to be working, though. The shortcut opens the Power Off dialog with the usual cancel, restart and power off options. Any ideas?