summaryrefslogtreecommitdiffstats
path: root/js/dbusServices/extensions/main.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/dbusServices/extensions/main.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js/dbusServices/extensions/main.js b/js/dbusServices/extensions/main.js
new file mode 100644
index 0000000..9cc4bc5
--- /dev/null
+++ b/js/dbusServices/extensions/main.js
@@ -0,0 +1,20 @@
+/* exported main */
+
+imports.gi.versions.Gdk = '3.0';
+imports.gi.versions.Gtk = '3.0';
+
+const { Gtk } = imports.gi;
+const pkg = imports.package;
+
+const { DBusService } = imports.dbusService;
+const { ExtensionsService } = imports.extensionsService;
+
+function main() {
+ Gtk.init(null);
+ pkg.initFormat();
+
+ const service = new DBusService(
+ 'org.gnome.Shell.Extensions',
+ new ExtensionsService());
+ service.run();
+}