isolver / ioHub

A Python program, running as an independent process, that provides a 'proxy like' service for experiment runtimes ( psychopy ) and devices ( keyboard, mouse, parallel port, eye tracker, ... ).
19 stars 14 forks source link

The .iohpid file is written in the working directory #82

Open danielshub opened 8 years ago

danielshub commented 8 years ago

In iohub/client.py the .iohpid file is written in "rootScriptPath". If this directory is not writable, this causes the iohub client to crash. The XDG Base Directory Specification (http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables) covers where these types of files should be saved and I think .iohpid should be saved in $XDG_RUNTIME_DIR since it is a runtime file and not a data file or a configuration file. I also think the standard naming for PID files in Linux would make the file called iohub.pid