Matlab preferences not being saved across sessions.
Show older comments
Hey there!
I recently installed Matlab on my Linux machine.
When ever I try to change font and colours of the UI, the change is not persisted. It resets back to default.
Even the add-on download dialog asks me to sign in every time.
Strangely, the keyboard shortcuts option, has the changes saved.
I am attaching a video for reference. - Link - Video Recording
I did email Mathworks support regarding this, its been a week since I emailed them. They did follow up, but none of their solutions worked.
Do let me know if anyone needs any additional details.
7 Comments
dpb
on 11 Aug 2022
See about killing the existing and recreating new preferences file <How-do-i-regenerate-my-matlab-preferences?>
I'd also ensure there somehow isn't a zombie MATLAB process still running -- not sure what it's called in Linux, but whatever is the TASKKILL or way to see/ensure there aren't any other processes in memory that didn't get killed cleanly before.
It that doesn't solve it, I'd not let go of the existing case number yet; my experience has been Mathworks support will continue to work on something until it's resolved or clearly a bug for which there is no workaround. This is, afaik, not an issue that seems to be highly prevalent so it would seem it should be solvable.
Dilip Parasu
on 12 Aug 2022
Walter Roberson
on 12 Aug 2022
Could you confirm that you have write access to prefdir()?
fileattrib(prefdir)
Dilip Parasu
on 12 Aug 2022
Walter Roberson
on 12 Aug 2022
Edited: Walter Roberson
on 12 Aug 2022
! ls -ld /home/venom/.matlab/R2022a
and verify that the owner is your account?
Also, to check, you are running matlab under your own account, not sudo, right?
And prefdir is on a local filesystem that is mounted read/write, not readonly and not a network file system?
Dilip Parasu
on 12 Aug 2022
jclds139
on 20 Sep 2022
I'm running into a similar problem. Once thing I did notice after running MATLAB in a clean Debian VM is that the affected preferences are saved to .mlsettings files, such as matlab.mlsettings and parallel.mlsettings.
Answers (1)
Dilip Parasu
on 20 Sep 2022
2 Comments
Generally you want your /tmp to be on a tmpfs. Also, if it's trying to hard-link, then this still wouldn't help in the common situation where /home is on a separate partition. I tried setting $TMPDIR, though, and that did work as a workaround without remounting /tmp.
This would definitely qualify as a bug, then, albeit apparently one with some obscure requirements. /tmp could be on any filesystem.
Shervin Sahba
on 21 Sep 2022
Thanks for this tip. Fixed it for myself with the TMPDIR env variable route. I agree that's less brutal than shutting down the tmpfs. Here's the relevant post.
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!