protocol: add a few more options for XDG_RUNTIME_DIR

PIPEWIRE_CORE can be used to specify a server name.
PIPEWIRE_REMOTE can be used to specify what server name to
connect to.

Either use the absolute path of the name to create and connect
to a server, or use a relative path. For a relative path, the
server name will be completed by prefixing the following paths
in order:

PIPEWIRE_RUNTIME_DIR environment variable,
XDG_RUNTIME_DIR environment variable,
HOME environment variable,
USERPROFILE environment variable,
home directory as stored in the password database.

Fixes #259
This commit is contained in:
Wim Taymans 2020-07-31 12:46:58 +02:00
parent 5f40bc6d4e
commit 6f2e274b15
4 changed files with 98 additions and 24 deletions

View file

@ -311,6 +311,9 @@
/* Define to 1 if you have the <valgrind/valgrind.h> header file. */
#mesondefine HAVE_VALGRIND_VALGRIND_H
/* Define to 1 if you have the <pwd.h> header file. */
#mesondefine HAVE_PWD_H
/* Defined if compiling for Windows */
#mesondefine HAVE_WIN32