From 23ed1ac135e4b31933d0fd926e96c85f12d7f44b Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 9 Feb 2023 16:39:54 -0800 Subject: debloat --- home/xyz/.local/bin/matlab | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100755 home/xyz/.local/bin/matlab (limited to 'home/xyz/.local/bin/matlab') 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 -- cgit v1.2.3-70-g09d2