From 5accb89d119619bd57c1ca53f2a9593f490060b9 Mon Sep 17 00:00:00 2001 From: xyz Date: Fri, 9 Sep 2022 02:49:47 -0700 Subject: add matlab wrapper script --- home/xyz/.local/bin/matlab | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 home/xyz/.local/bin/matlab 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 -- cgit v1.2.3-70-g09d2