mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
This commit is contained in:
parent
e58fbeea17
commit
d4dc1c87c5
1 changed files with 3 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ const GnomeShellIface = <interface name="org.gnome.Shell">
|
|||
<arg type="i" direction="in" name="width"/>
|
||||
<arg type="i" direction="in" name="height"/>
|
||||
</method>
|
||||
<property name="Mode" type="s" access="read" />
|
||||
<property name="OverviewActive" type="b" access="readwrite" />
|
||||
<property name="ShellVersion" type="s" access="read" />
|
||||
</interface>;
|
||||
|
|
@ -186,6 +187,8 @@ const GnomeShell = new Lang.Class({
|
|||
flashspot.fire();
|
||||
},
|
||||
|
||||
Mode: global.session_mode,
|
||||
|
||||
get OverviewActive() {
|
||||
return Main.overview.visible;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue