From 87ae8307057944662bb8a4b638f56fa980eef48a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 15 May 2012 23:59:33 +0200 Subject: [PATCH] auth: move cookie file to ~/.config/pulse/cookie In order to follow XDG basedir, read the cookie file from ~/.config/pulse/cookie if possible, but fall back to the old file. if it doesn't exist. --- man/pax11publish.1.xml.in | 6 +++--- man/pulse-client.conf.5.xml.in | 2 +- src/modules/module-esound-sink.c | 2 +- src/modules/module-tunnel.c | 2 +- src/modules/x11/module-x11-publish.c | 2 +- src/pulse/client-conf.c | 24 ++++++++++++++++++------ src/pulsecore/auth-cookie.c | 4 ++-- src/pulsecore/auth-cookie.h | 2 +- src/pulsecore/authkey.c | 14 +++++++------- src/pulsecore/authkey.h | 4 ++-- src/pulsecore/native-common.h | 3 ++- src/pulsecore/protocol-esound.c | 2 +- src/pulsecore/protocol-native.c | 20 ++++++++++++++++---- src/utils/pax11publish.c | 2 +- 14 files changed, 57 insertions(+), 32 deletions(-) diff --git a/man/pax11publish.1.xml.in b/man/pax11publish.1.xml.in index 6ad20f7a..0628b9d6 100644 --- a/man/pax11publish.1.xml.in +++ b/man/pax11publish.1.xml.in @@ -73,7 +73,7 @@ USA. the eval shell command to set the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables. Also reads the authentication cookie from the root window and stores it in - ~/.pulse-cookie.

+ ~/.config/pulse/cookie.

@@ -133,7 +133,7 @@ USA.

Only valid for -e: export the PulseAudio authentication cookie stored in the specified file to the X11 - display instead of the one stored in ~/.pulse-cookie.

+ display instead of the one stored in ~/.config/pulse/cookie.

diff --git a/man/pulse-client.conf.5.xml.in b/man/pulse-client.conf.5.xml.in index 6243a3b2..45f02da9 100644 --- a/man/pulse-client.conf.5.xml.in +++ b/man/pulse-client.conf.5.xml.in @@ -88,7 +88,7 @@ USA.