summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/matlab
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-09-09 02:49:47 -0700
committerxyz <gky44px1999@gmail.com>2022-09-09 02:49:47 -0700
commit5accb89d119619bd57c1ca53f2a9593f490060b9 (patch)
tree36059059ec68c089e3e5fc94fb19a5ef85b5a9b4 /home/xyz/.local/bin/matlab
parenteab4b65cf0572b9451e1fd4eb8d94ac40c70e307 (diff)
add matlab wrapper script
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