Subject: pulseaudio not started in xfce for regular user

From: Tito <[email-masked]>
Date: Tue, 14 Jan 2020 22:09:03 +0100

Package: pulseaudio
Version: 12.2-4+deb10u1

Incorrect behavior: the .desktop file installed in
/etc/xdg/autostart/pulseaudio.desktop does not work correctly
for a regular user and pulseaudio is not started in xfce DE.
The .desktop file does start pulseaudio for the root user.

[Desktop Entry]
Version=1.0
Name=PulseAudio Sound System

omissis

Exec=start-pulseaudio-x11
Terminal=false
Type=Application
Categories=
GenericName=
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1

Partial fix:
changing Exec line to Exec=/usr/bin/pulseaudio --start
works for regular users but not for the  root user.

Calling a wrapper script like:

#!/bin/sh
if [ $(id -u) -eq 0 ] ; then
	start-pulseaudio-x11
else
	pulseaudio --start
fi

maybe could work for all users but i did not test it
and probably there is a more orthodox solution.

---

From: Mark Hindley <[email-masked]>
Date: Wed, 15 Jan 2020 15:32:46 +0000

control: merge -1 276 

On Wed, 15 Jan 2020 14:38:54 +0100 Tito wrote:
> Yes this fixes it.

Good. Merging.

We will add this to the release notes.

Mark