mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-20 20:14:56 +00:00
feat: add ujust to toggle Gnome JS JIT (#344)
* Add ujust to toggle Gnome JS JIT * Disable Gnome JIT by default
This commit is contained in:
2
files/system/usr/etc/profile.d/gnome-disable-jit.sh
Normal file
2
files/system/usr/etc/profile.d/gnome-disable-jit.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export JavaScriptCoreUseJIT=0
|
||||||
|
export GJS_DISABLE_JIT=1
|
||||||
@@ -177,3 +177,15 @@ toggle-anticheat-support:
|
|||||||
else
|
else
|
||||||
echo "The sysctl hardening file is missing the ptrace_scope setting."
|
echo "The sysctl hardening file is missing the ptrace_scope setting."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Toggle Gnome JIT JavaScript for GJS and WebkitGTK (requires session restart)
|
||||||
|
toggle-gnome-jit-js:
|
||||||
|
#!/usr/bin/pkexec /usr/bin/bash
|
||||||
|
ENV_FILE="/etc/profile.d/gnome-disable-jit.sh"
|
||||||
|
if test -e $ENV_FILE; then
|
||||||
|
sudo rm -f $ENV_FILE
|
||||||
|
echo "JIT has been enabled."
|
||||||
|
else
|
||||||
|
sudo sh -c 'echo -e "export JavaScriptCoreUseJIT=0\nexport GJS_DISABLE_JIT=1" > /etc/profile.d/gnome-disable-jit.sh'
|
||||||
|
echo "JIT has been disabled."
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user