summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2024-09-06 19:40:51 -0700
committerXiao Pan <xyz@flylightning.xyz>2024-09-06 19:40:51 -0700
commit5f740b45b331e9b5e00bab5cd9afdfb89043f35b (patch)
tree4851b2cde802298616f112ceff85c3e2471dc4cb /home
parentd711be652bd5fdd0d4f6c5f5d22b72cce6662aae (diff)
new matlab wrapper script
Diffstat (limited to 'home')
-rwxr-xr-xhome/xyz/.local/bin/matlab4
1 files changed, 4 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/matlab b/home/xyz/.local/bin/matlab
new file mode 100755
index 00000000..fcc244eb
--- /dev/null
+++ b/home/xyz/.local/bin/matlab
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# LD_LIBRARY_PATH=/usr/lib/dri needed for plot and hardware acc? see https://wiki.archlinux.org/title/MATLAB#OpenGL_acceleration, also need a new file /home/xyz/downloads/programs_tmp/MATLAB/home/xyz/downloads/programs_tmp/MATLAB/java.opts contain: -Djogl.disable.openglarbcontext=1
+_JAVA_AWT_WM_NONREPARENTING=1 LD_PRELOAD=/usr/lib/libstdc++.so.6 LD_LIBRARY_PATH=/usr/lib/dri exec "$XDG_DOWNLOAD_DIR/programs_tmp/MATLAB/bin/matlab" -desktop