Unable to open this file in the current system configuration. When opening a file

41 visualizaciones (últimos 30 días)
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 comentarios
Michael Deakin
Michael Deakin el 16 de Dic. de 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
Marcel el 16 de Dic. de 2022
wow im surprised that you came back to it. i know many people who wouldnt bother with posting the solution. big respect

Iniciar sesión para comentar.

Respuesta aceptada

Samuel Bignardi
Samuel Bignardi el 7 de Abr. de 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!

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by