From 5e0fccae5db90905f06668f37e1a1d7f8d48aed9 Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Wed, 15 Apr 2020 12:51:47 -0500 Subject: [PATCH] - Adds fix for shortcuts on Gnome DE to survive reboots --- setup.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.py b/setup.py index 19df0b6..4446977 100755 --- a/setup.py +++ b/setup.py @@ -145,6 +145,14 @@ def setShortcuts(): else: print('distro: ' + distro + ' de: ' + dename) print("A supported OS and DE was not found, you may not have full system level shortcuts installed.") + if dename == "gnome": + # Apply dconf update to make updates survive reboots + cmdline('dconf dump /org/gnome/desktop/wm/keybindings/ > tempkb.conf') + cmdline('dconf dump /org/gnome/mutter/keybindings/ > tempmt.conf') + cmdline('dconf load /org/gnome/desktop/wm/keybindings/ < tempkb.conf') + cmdline('dconf load /org/gnome/mutter/keybindings/ < tempmt.conf') + cmdline('sleep 1 && rm -f ./tempkb.conf;rm -f ./tempmt.conf') + # cmdline('dconf update') def windows_setup(): keymaps = ["Apple keyboard standard", "Apple keyboard w/ Caps lock as Esc", "Windows keyboard standard", "Windows keyboard w/ Caps lock as Esc","Uninstall"]