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

uigetfile2 and uiputfile2 memorize previously used directories on multiuser & multisession systems #84

Closed
arnodelorme opened this issue Nov 27, 2019 · 7 comments
Labels
question Further information is requested

Comments

@arnodelorme
Copy link
Collaborator

arnodelorme commented Nov 27, 2019

Currently uigetfile2.m and uiputfile2.m store previously used directory in a eeglab.cfg file in a /tmp directory common to all users on a computer.

This poses problems on shared computers. Users are pointed to the previous directory of whoever ran the mfile last.

Also when running several instances of matlab on a single computer, only one directory is remembered by uiputfile2 and uigetfile2.

Attached version of both files uses setpref and getpref features of matlab to set userspecific last directory. Also defines a persistent variable that allows specific values of the last directory on different instances on the same computer.

mlock is used at the beginning of the file to prevent clearing of persistent variable from memory by eeglab.

[From Max Chaumon]

@arnodelorme
Copy link
Collaborator Author

Archive.zip

@nucleuscub
Copy link
Member

@arnodelorme , should we move ahead with this?
The solution implies to save an extra configuration file for the paths...not sure how do you feel bout it. Let me know, what should we do. Thks, R

@nucleuscub nucleuscub added the question Further information is requested label Dec 11, 2019
@arnodelorme
Copy link
Collaborator Author

Yes, we should move forward.

@nucleuscub
Copy link
Member

OK. Patch has been added in this commit
R

@arnodelorme
Copy link
Collaborator Author

arnodelorme commented Dec 12, 2019 via email

@nucleuscub
Copy link
Member

Yep, Windows 10, MACOS and Ubuntu running MATLAB R2018b. In all seems to work fine.
R

@arnodelorme
Copy link
Collaborator Author

arnodelorme commented Dec 12, 2019 via email

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

No branches or pull requests

2 participants