Am 30.03.2016 um 18:53 schrieb Hermann Meyer:
I've set the fifo-path now to /tmp instead working
dir, to ensure that
"all" instances use the same fifo and have access to it.
Not that it's a very common usage scenario, but won't that preclude
jalv.select being used by different users on the same system at the same
time? Also any user can control another user's jalv.select process. And
if you make the fifo file permissions more restrictive, you'll get
problems with stale files etc.
I think it would be better to determine the fifo path with something
like this (pseudo code) and set its permissions to 0600:
fifo_path = getenv('JALV_SELECT_FIFO_PATH')
fifo_path = fifo_path if fifo_path else getenv('HOME') +
'/.jalv_select_fifo'
It's issues like these why I think DBus is a better way to do IPC for
any but the most simple program, which is intended to run in a desktop
environment anyway.
Chris