shellDBus: Add a method to reload extensions
A common request from extension developers has been to reload their extensions without restarting the Shell. https://bugzilla.gnome.org/show_bug.cgi?id=677586
This commit is contained in:
parent
75570b7995
commit
19ef6b0421
@ -67,6 +67,9 @@ const GnomeShellIface = <interface name="org.gnome.Shell">
|
||||
<method name="LaunchExtensionPrefs">
|
||||
<arg type="s" direction="in" name="uuid"/>
|
||||
</method>
|
||||
<method name="ReloadExtension">
|
||||
<arg type="s" direction="in" name="uuid"/>
|
||||
</method>
|
||||
<property name="OverviewActive" type="b" access="readwrite" />
|
||||
<property name="ApiVersion" type="i" access="read" />
|
||||
<property name="ShellVersion" type="s" access="read" />
|
||||
@ -269,6 +272,11 @@ const GnomeShell = new Lang.Class({
|
||||
['extension:///' + uuid], -1, null);
|
||||
},
|
||||
|
||||
ReloadExtension: function(uuid) {
|
||||
ExtensionSystem.unloadExtension(uuid);
|
||||
ExtensionSystem.loadExtension(uuid);
|
||||
},
|
||||
|
||||
get OverviewActive() {
|
||||
return Main.overview.visible;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user