forked from ramottamado/eval-gjs
b609ff886e34c5caf1601459260ee9e6df842868
Support for Gnome Shell version 42
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,GLibandMetaavailable 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();"
Languages
JavaScript
92.6%
Makefile
7.4%