Find a file
Tamado Ramot Sitohang b609ff886e
Merge pull request #1 from pjfila/patch-1
Support for Gnome Shell version 42
2022-05-27 09:09:06 +07:00
eval-gjs@ramottamado.dev Support for Gnome Shell version 42 2022-05-25 16:24:59 +02:00
LICENSE First commit 2021-09-25 12:11:01 +07:00
Makefile First commit 2021-09-25 12:11:01 +07:00
README.md Fix git URL 2021-09-25 12:13:19 +07:00

Eval GJS GNOME Shell Extension

As of GNOME 41, the dbus method Eval() is now restricted with MetaContext:unsafe-mode property (see this commit). This extension provides unrestricted Eval() dbus method for running arbitrary code in the compositor.

Features

  • Run arbitrary GJS code like you would with GNOME Eval() dbus method.
  • Main, Gio, GLib and Meta available by default.

Installation

git clone git://github.com/ramottamado/eval-gjs.git
cd eval-gjs
make install

Example Usage

gdbus call \
  --session \
  --dest org.gnome.Shell \
  --object-path /dev/ramottamado/EvalGjs \
  --method dev.ramottamado.EvalGjs.Eval "Main.overview.show();"