[gnome-tweak-tool] Choose the dynamic-workspaces schema based on the session mode
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Choose the dynamic-workspaces schema based on the session mode
- Date: Wed, 12 Dec 2012 10:06:56 +0000 (UTC)
commit d53b51807884c636cda65def898dfb31e27b282d
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Dec 6 13:58:23 2012 +0100
Choose the dynamic-workspaces schema based on the session mode
In addition to the vanilla GNOME Shell modes, it will now have a
fallback replacement mode, which uses a different schema for the
dynamic-workspaces key. Choose the schema depending on the value of
the org.gnome.Shell.Mode property.
https://bugzilla.gnome.org/show_bug.cgi?id=689763
gtweak/tweaks/tweak_shell.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_shell.py b/gtweak/tweaks/tweak_shell.py
index 424fee1..00a61df 100644
--- a/gtweak/tweaks/tweak_shell.py
+++ b/gtweak/tweaks/tweak_shell.py
@@ -211,7 +211,12 @@ class StaticWorkspaceTweak(Tweak):
NUM_WORKSPACES_SCHEMA = "org.gnome.desktop.wm.preferences"
NUM_WORKSPACES_KEY = "num-workspaces"
- DYNAMIC_SCHEMA = "org.gnome.shell.overrides"
+ _shell = GnomeShellFactory().get_shell()
+ if _shell.mode in ['gdm', 'initial-setup', 'user']:
+ DYNAMIC_SCHEMA = "org.gnome.shell.overrides"
+ else:
+ DYNAMIC_SCHEMA = "org.gnome.mutter"
+
DYNAMIC_KEY = "dynamic-workspaces"
def __init__(self, **options):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]