mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
main: set PIPEWIRE_INTERNAL env
So that we can detect if we running in the daemon
This commit is contained in:
parent
d2c2edb7ce
commit
6a244592a0
1 changed files with 3 additions and 0 deletions
|
|
@ -68,6 +68,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
pw_init(&argc, &argv);
|
||||
|
||||
if (setenv("PIPEWIRE_INTERNAL", "1", 1) < 0)
|
||||
fprintf(stderr, "can't PIPEWIRE_INTERNAL env: %m");
|
||||
|
||||
daemon_name = getenv("PIPEWIRE_CORE");
|
||||
if (daemon_name == NULL)
|
||||
daemon_name = PW_DEFAULT_REMOTE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue