From ee06c7ff123cc61f78bbda9d5971c60a1328c572 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Wed, 1 Jan 2025 19:44:02 +0100 Subject: [PATCH] Add support for Shell --- README.md | 4 ++-- eval-gjs@ramottamado.dev/extension.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fbb8b14..22c3c86 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,12 @@ As of GNOME 41, the dbus method `Eval()` is now restricted with `MetaContext:uns ## Features * Run arbitrary GJS code like you would with GNOME `Eval()` dbus method. -* `Main`, `Gio`, `GLib` and `Meta` available by default. +* `Main`, `Gio`, `GLib`,`Meta` and `Shell` available by default. ## Installation ```sh -git clone git://github.com/ramottamado/eval-gjs.git +git clone git@github.com:0xFEEDC0DE64/eval-gjs.git cd eval-gjs make install ``` diff --git a/eval-gjs@ramottamado.dev/extension.js b/eval-gjs@ramottamado.dev/extension.js index 8ec6c22..1b5a438 100644 --- a/eval-gjs@ramottamado.dev/extension.js +++ b/eval-gjs@ramottamado.dev/extension.js @@ -19,6 +19,7 @@ import Gio from 'gi://Gio'; import Meta from 'gi://Meta'; import GLib from 'gi://GLib'; +import Shell from 'gi://Shell'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; const EvalGjsIface =