mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-19 07:00:03 -05:00
use fqdn in module-x11-publish as well
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@278 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
3916a66a87
commit
3fcd7a433c
1 changed files with 5 additions and 2 deletions
|
|
@ -147,8 +147,11 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
|
||||||
|
|
||||||
u->display = pa_x11_wrapper_get_display(u->x11_wrapper);
|
u->display = pa_x11_wrapper_get_display(u->x11_wrapper);
|
||||||
|
|
||||||
pa_get_host_name(hn, sizeof(hn));
|
if (!pa_get_fqdn(hn, sizeof(hn)))
|
||||||
pa_get_user_name(un, sizeof(un));
|
goto fail;
|
||||||
|
|
||||||
|
if (!pa_get_user_name(un, sizeof(un)))
|
||||||
|
goto fail;
|
||||||
|
|
||||||
u->id = pa_sprintf_malloc("%s@%s/%u", un, hn, (unsigned) getpid());
|
u->id = pa_sprintf_malloc("%s@%s/%u", un, hn, (unsigned) getpid());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue