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

31 ビュー (過去 30 日間)
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 件のコメント
Michael Deakin
Michael Deakin 2022 年 12 月 16 日
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 2022 年 12 月 16 日
wow im surprised that you came back to it. i know many people who wouldnt bother with posting the solution. big respect

サインインしてコメントする。

採用された回答

Samuel Bignardi
Samuel Bignardi 2023 年 4 月 7 日
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!
  1 件のコメント
Matthias Maile
Matthias Maile 2023 年 4 月 12 日
Thank you very much, it solved it for me as well, definitely helpful for future Fedora updates

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by