From 35e90c8c274fd7c2c6273c02a507a161b8b2a9e8 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Sun, 10 Jul 2022 11:27:02 +1200 Subject: [PATCH] Improve code --- scripts/launcher | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/launcher b/scripts/launcher index ffa1829..aeb64ad 100755 --- a/scripts/launcher +++ b/scripts/launcher @@ -51,10 +51,9 @@ export LC_ALL="C.UTF-8" # Make PulseAudio socket available inside the snap-specific $XDG_RUNTIME_DIR # Code originally from https://github.com/ubuntu/snapcraft-desktop-helpers/blob/ec86125/common/desktop-exports#L257-L264 if [ -n "$XDG_RUNTIME_DIR" ]; then - pulsenative="pulse/native" # $XDG_RUNTIME_DIR may not exist yet, use readlink to get the parent # directory anyway. - pulseaudio_sockpath=$(readlink -m "$XDG_RUNTIME_DIR/../$pulsenative") + pulseaudio_sockpath=$(readlink -m "$XDG_RUNTIME_DIR/../pulse/native") if [ -S "$pulseaudio_sockpath" ]; then export PULSE_SERVER="unix:${pulseaudio_sockpath}" fi