summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/matlab
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/bin/matlab')
-rwxr-xr-xhome/xyz/.local/bin/matlab7
1 files changed, 7 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/matlab b/home/xyz/.local/bin/matlab
new file mode 100755
index 00000000..293197ea
--- /dev/null
+++ b/home/xyz/.local/bin/matlab
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# https://wiki.archlinux.org/title/MATLAB#Blank/grey_UI_when_using_WM_(non-reparenting_window_manager)
+# https://wiki.archlinux.org/title/Java#Gray_window,_applications_not_resizing_with_WM,_menus_immediately_closing
+# https://wiki.archlinux.org/title/MATLAB#Unable_to_launch_the_MATLABWindow_application
+# LD_PRELOAD put before firejail does not work, not sure why
+firejail env _JAVA_AWT_WM_NONREPARENTING=1 LD_PRELOAD=/lib64/libfreetype.so ~/programs/MATLAB/R2022a/bin/matlab