forked from ramottamado/eval-gjs
Add support for Shell
This commit is contained in:
@ -15,12 +15,12 @@ As of GNOME 41, the dbus method `Eval()` is now restricted with `MetaContext:uns
|
|||||||
## Features
|
## Features
|
||||||
|
|
||||||
* Run arbitrary GJS code like you would with GNOME `Eval()` dbus method.
|
* 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
|
## Installation
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone git://github.com/ramottamado/eval-gjs.git
|
git clone git@github.com:0xFEEDC0DE64/eval-gjs.git
|
||||||
cd eval-gjs
|
cd eval-gjs
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
import Gio from 'gi://Gio';
|
import Gio from 'gi://Gio';
|
||||||
import Meta from 'gi://Meta';
|
import Meta from 'gi://Meta';
|
||||||
import GLib from 'gi://GLib';
|
import GLib from 'gi://GLib';
|
||||||
|
import Shell from 'gi://Shell';
|
||||||
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
|
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
|
||||||
|
|
||||||
const EvalGjsIface =
|
const EvalGjsIface =
|
||||||
|
Reference in New Issue
Block a user