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

Temp file location. #6

Open
schuelaw opened this issue Apr 24, 2013 · 3 comments
Open

Temp file location. #6

schuelaw opened this issue Apr 24, 2013 · 3 comments

Comments

@schuelaw
Copy link

Right now temp files are going into /tmp/vim-processing (at least in linux). If more than one user on a machine is using vim-processing, then the second user loses write permission to /tmp/vim-processing and can't launch a sketch.

A half-measure would be to delete /tmp/vim-processing after each run. A better measure would be to make the temp file location unique to each user (and to delete it after each run).

@schuelaw
Copy link
Author

On a side note, really lovely plugin. Fantastically useful when grading numerous sketches from numerous students. Thanks a bunch!

@sophacles
Copy link
Owner

Thanks for the heads up on that. I know that the solution (roughly) is to have the script check for posix, then the shellouts will need to use mktemp for the dir. Not sure of all the details, including deletions etc, but thats the start of it.

I'm not sure I'll have time to actively work on this issue for a little while, but will if it's still here when I get the chance. If you want to take a stab at it in the mean time, I'd be glad to merge something!

@schuelaw
Copy link
Author

On linux, you could simply append the userid to the temp file location. I assume that windows has userid's too? I'll think a bit about it after my semester ends. Again, nice work on the script.

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