summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/matlab
blob: a6f4ec9f8cef3f710744106d0b0fc84b83b327fb (plain)
1
2
3
4
5
6
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
firejail env _JAVA_AWT_WM_NONREPARENTING=1 LD_PRELOAD=/lib64/libfreetype.so ~/programs/MATLAB/R2022a/bin/matlab