Make temporary file name user dependent#200
Make temporary file name user dependent#200ablot wants to merge 1 commit intoSWC-Advanced-Microscopy:masterfrom
Conversation
On machines with strict user permissions, one cannot overwrite the temp file created by somebody else. Make sure that the username is in the file name to avoid conflicts
|
The prefered solution would probably be to use a single account on the system for acquisiton but that was apparently not an option for us. |
|
Sorry, just got around to this. If there is a currently running background process on a different user name then it will not be killed. See line 19, just under the lines you add. So I'm not sure if your solution is ideal. |
|
I don't think there is a real reason to have multiple users. I failed to convinced them that a kiosk account would be better. The imaging facility argued that it's simpler to keep track of microscope usage, to make sure that people have access to the data server with the proper permissions and to allow remote log in during acquisition. I see the issue with the background process. We don't use the web preview yet. The real solution might be to make sure our temp folder has decent permission (make a There is also a permission issue at the end of acquisition when trying to access the stitchit log file (~L43 on this file). For that the change in the file name might be a good solution. I'll try that to ask for a permission change, revert the change and change only stitchit.log when I get the chance. You can close the PR and resurect it if more people have the issue. |
|
The other reason for the kiosk account is that I'm currently working on a solution to start the |
On machines with strict user permissions, one cannot overwrite the temp file created by somebody else. Make sure that the username is in the file name to avoid conflicts.