Merge pull request #5 from salemkode/Support-gnome-45

Support gnome 45
This commit is contained in:
Tamado Ramot Sitohang
2024-02-26 11:14:30 +07:00
committed by GitHub
2 changed files with 7 additions and 17 deletions

View File

@ -1,3 +1,8 @@
import Gio from 'gi://Gio';
import Meta from 'gi://Meta';
import GLib from 'gi://GLib';
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
/* extension.js
*
* This program is free software: you can redistribute it and/or modify
@ -16,14 +21,6 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
/* exported init */
'use strict';
const { Gio, GLib, Meta } = imports.gi;
const Main = imports.ui.main;
const EvalGjsIface =
'<node>' +
' <interface name="dev.ramottamado.EvalGjs">' +
@ -35,7 +32,7 @@ const EvalGjsIface =
' </interface>' +
'</node>';
class EvalGjs {
export default class EvalGjs {
constructor() {
this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(EvalGjsIface, this);
}
@ -85,7 +82,3 @@ class EvalGjs {
if (this._dbusImpl) this._dbusImpl.unexport();
}
}
function init() {
return new EvalGjs();
}

View File

@ -3,10 +3,7 @@
"description": "Evaluate GJS script through DBus",
"uuid": "eval-gjs@ramottamado.dev",
"shell-version": [
"41",
"42",
"43",
"44"
"45"
],
"url": "https://github.com/ramottamado/eval-gjs"
}