[LAD] Opening jalv.select window from the command line (Was:jalv.select released V0.5)

Christopher Arndt chris at chrisarndt.de
Wed Mar 30 17:28:56 UTC 2016


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 979 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20160330/9dfd0751/attachment.pgp>


More information about the Linux-audio-dev mailing list