From d4dc1c87c59fddd5f3c0279b547d8d4739cdfb7e Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 29 Nov 2012 19:17:51 +0100 Subject: [PATCH] dbus: Add a read-only org.gnome.Shell.Mode property This is meant to expose the global.session_mode to applications such as the gnome-tweak-tool, which would need it to differentiate between the vanilla GNOME Shell mode and the fallback replacement mode. https://bugzilla.gnome.org/show_bug.cgi?id=689300 --- js/ui/shellDBus.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index b4d896615..6b88baf25 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -46,6 +46,7 @@ const GnomeShellIface = + ; @@ -186,6 +187,8 @@ const GnomeShell = new Lang.Class({ flashspot.fire(); }, + Mode: global.session_mode, + get OverviewActive() { return Main.overview.visible; },