Skip to content

Commit 5ba65f9

Browse files
committed
v9.1: fix dbus
1 parent 7cb711e commit 5ba65f9

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tilingshell",
3-
"version": "9.0",
3+
"version": "9.1",
44
"author": "Domenico Ferraro <[email protected]>",
55
"private": true,
66
"license": "GPL v2.0",

resources/metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"46"
1111
],
1212
"version": 9,
13-
"version-name": "9.0",
13+
"version-name": "9.1",
1414
"url": "https://github.com/domferr/tilingshell",
1515
"settings-schema": "org.gnome.shell.extensions.tilingshell",
1616
"donations": {

src/dbus.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ export default class DBus {
1414
this._dbus = null;
1515
}
1616

17-
public enable() {
17+
public enable(ext: any) {
1818
if (this._dbus) return;
1919

20-
this._dbus = Gio.DBusExportedObject.wrapJSObject(node, this);
20+
this._dbus = Gio.DBusExportedObject.wrapJSObject(node, ext);
21+
this._dbus.export(Gio.DBus.session, '/org/gnome/shell/extensions/TilingShell');
2122
}
2223

2324
public disable() {

src/extension.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ export default class TilingShellExtension extends Extension {
9797

9898
if (this._dbus) this._dbus.disable();
9999
this._dbus = new DBus();
100-
this._dbus.enable();
100+
this._dbus.enable(this);
101+
101102
debug('extension is enabled');
102103
}
103104

0 commit comments

Comments
 (0)