Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make new scheme persistent? #41

Closed
rjrich opened this issue Feb 25, 2023 · 4 comments
Closed

How to make new scheme persistent? #41

rjrich opened this issue Feb 25, 2023 · 4 comments

Comments

@rjrich
Copy link

rjrich commented Feb 25, 2023

I am new to Matlab and to matlab-schemer. I am running Matlab 2022b_r3 on Linux (Linux Mint 21.1 Xfce, based on Ubuntu 22.04 LTS). I have managed to use matlab-schemer to switch from the Matlab default color scheme to the cobalt scheme, but when I close Matlab and restart it, the color scheme has reverted to the Matlab default light color scheme. Is there a way to make the matlab-schemer cobalt scheme persistent so that Matlab starts up with the cobalt scheme?

@scottclowe
Copy link
Owner

That's unexpected, as the scheme is supposed to persist between closing and reopening MATLAB. It does the same thing as if you manually go in the preferences dialog and set the customizable GUI colours. If you manually set one of the colours in the preferences, does that persist between closing and reopening MATLAB?

@rjrich
Copy link
Author

rjrich commented Feb 27, 2023 via email

@scottclowe
Copy link
Owner

scottclowe commented Feb 27, 2023

Okay, in that case its not an issue with Schemer, it's an issue with your MATLAB installation.

I think it this issue can be caused by installing MATLAB as root and running it as a user without sudo privileges. My recommendations are:

  • Launch matlab from the terminal and check to see if an error message is displayed.
  • Run the command prefdir in MATLAB to see where your preferences directory is, and then in terminal use ls to check the permissions for that directory and the preferences file within it. You may want to set it so all users can read and write that directory chmod a+rw -R DIRNAME.
  • Check existing MATLAB support tickets on this topic to see if they fix your issue, e.g. https://www.mathworks.com/matlabcentral/answers/1777865-matlab-preferences-not-being-saved-across-sessions
  • Reinstall MATLAB

I will close this issue now, as it is not a problem with Schemer.

If you debug and find a solution to your problem, please post here so others will know a solution to try if they face the same problem and happen upon this post.

@rjrich
Copy link
Author

rjrich commented Feb 27, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants