summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/matlab
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-02-09 16:39:54 -0800
committerXiao Pan <gky44px1999@gmail.com>2023-02-09 16:39:54 -0800
commit23ed1ac135e4b31933d0fd926e96c85f12d7f44b (patch)
tree3766b636f193d77f2835caf66dea8142e8d8b3eb /home/xyz/.local/bin/matlab
parent7c7535db00a4f0f7019e2c9585c0c108ebca3e3d (diff)
debloat
Diffstat (limited to 'home/xyz/.local/bin/matlab')
-rwxr-xr-xhome/xyz/.local/bin/matlab31
1 files changed, 0 insertions, 31 deletions
diff --git a/home/xyz/.local/bin/matlab b/home/xyz/.local/bin/matlab
deleted file mode 100755
index 9df9e996..00000000
--- a/home/xyz/.local/bin/matlab
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-# for matlab version R2022a
-# 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
-# https://faq.i3wm.org/question/2564/cant-open-matlab-from-dmenu.1.html
-# https://wiki.archlinux.org/title/MATLAB#Desktop_entry
-# use /tmp as working (startup) directory and save simulink files there to avoid cross filesystem hardlink error:
-# https://bbs.archlinux.org/viewtopic.php?id=277970
-
-cmd () {
- _JAVA_AWT_WM_NONREPARENTING=1 LD_PRELOAD=/lib64/libfreetype.so exec "$bin_dir/matlab" -sd "$startup_dir" -desktop -nosplash "$@"
-}
-
-startup_dir=/tmp/matlab
-bin_dir="$HOME/programs/MATLAB/R2022a/bin"
-addon_dir="$HOME/MATLAB Add-Ons"
-[ -d "$startup_dir" ] || mkdir "$startup_dir"
-
-# my workaround for simulink gyroscope compile errors:
-# "avr-gcc: error: I2Cdev.o: No such file or directory" (also for other .o files)
-# "Code generation information file does not exist." (caused by no .o file error before I guess)
-# I guess it is still cross filesystem hardlink error
-# need to set path in matlab manually once for "$startup_dir/$addon_dir" sub dirs inside
-[ -d "$startup_dir/$addon_dir" ] || cp -r "$addon_dir" "$startup_dir"
-
-if ! cmd "$@"; then
- "$bin_dir/activate_matlab.sh"
- cmd "$@"
-fi