mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-05 18:38:26 +02:00
- Adds fix for shortcuts on Gnome DE to survive reboots
This commit is contained in:
8
setup.py
8
setup.py
@@ -145,6 +145,14 @@ def setShortcuts():
|
|||||||
else:
|
else:
|
||||||
print('distro: ' + distro + ' de: ' + dename)
|
print('distro: ' + distro + ' de: ' + dename)
|
||||||
print("A supported OS and DE was not found, you may not have full system level shortcuts installed.")
|
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():
|
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"]
|
keymaps = ["Apple keyboard standard", "Apple keyboard w/ Caps lock as Esc", "Windows keyboard standard", "Windows keyboard w/ Caps lock as Esc","Uninstall"]
|
||||||
|
Reference in New Issue
Block a user