Matlab 2024a creates "Downloads" folder automatically when start up

5 views (last 30 days)
I installed matlab 2024a in CentOS Stream 9. It creates a folder named "Downloads" at my home directory everytime when I launch it. I really don't like this feature. In the previous version, it can be solved by 'userpath /path/prefer'. But it didn't work for 2024a. Is there a way to avoid creating "Downloads"?
  3 Comments
Hua Wang
Hua Wang on 19 Jul 2024
Thank you Umar. Your solution worked for the earlier versions, but it didn't work for R2024a. There was no startup.m with original installation. Then I created and put it either at ~/.matlab/R2024a or at MATLAB/R2024a/toolbox/local. None of these tests works. I guess there must be some changes since R2024a.
Hua Wang
Hua Wang on 19 Jul 2024
I found that it won't make the folder with command 'matlab -nojvm' or 'matlab -nodisplay'. That is to say, it was created only when launching the interface.

Sign in to comment.

Accepted Answer

Hua Wang
Hua Wang on 19 Jul 2024
Edited: Hua Wang on 19 Jul 2024
Finally I found a solution, which might not be the best. When starting up with GUI, it creats 'Downloads' folder according to the setup of download folder in the Linux system. The default folder is $HOME/Downloads. The solution is to create a file .config/user-dirs.dirs. Just type the following line in the file.
XDG_DOWNLOAD_DIR="/path/prefer"
  2 Comments
Umar
Umar on 19 Jul 2024
Hi Hua,
I just noticed that you have edited your question in the posting and found the solution to your problem. If it works, please share your thoughts with us. If not, we are still here to help you out.
Hua Wang
Hua Wang on 21 Jul 2024
Yes the above solution to set up user-dirs.dirs works. Thank you Umar.

Sign in to comment.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!