Unable to open this file in the current system configuration. When opening a file
42 views (last 30 days)
Show older comments
Matthias Maile
on 16 Sep 2022
Commented: Matthias Maile
on 12 Apr 2023
Running on Fedora 36, Matlab R2022a can not open a script in the editor with the afforementioned error. Deleting and creating files works, so it has access to the filesystem. The question has been asked before but on old threads with older systems and I can not find the libraries mentioned in answers.
Running the script with the drop down menu works, its just opening it in the editor.
12 Comments
Michael Deakin
on 16 Dec 2022
I got matlab to work when I had this issue by preloading libfreetype.so:
LD_PRELOAD="/usr/lib64/libfreetype.so.6" ~/matlab/bin/matlab
Note that this also fixes an issue installing matlab. This affects me on an up to date installation of Fedora Linux 36.
Marcel
on 16 Dec 2022
wow im surprised that you came back to it. i know many people who wouldnt bother with posting the solution. big respect
Accepted Answer
Samuel Bignardi
on 7 Apr 2023
The problem for me started after upgrading Fedora from 35 to 36.
I started matlam in log mode using ./matlab -logfile mylog.log,
Then I recreated the problem and checked the mylog.log file (was written in my /home folder). The error that caused the issue was: "Warning: The desktop configuration file is corrupt or improperly formatted.".
I found the solution on the Matlab official Q&A (link below), it consisted in using two commands:
cd <matlab_root>/bin/glnxa64/
mv libfreetype.so.6 libfreetype.so.6.old
I found the solution online here: https://www.mathworks.com/matlabcentral/answers/1779395-the-desktop-configuration-file-is-corrupt-or-improperly-formatted-when-starting-matlab
Hope this helps!
More Answers (0)
See Also
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!