Subject: bug#375: 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 10:04:43 +0000

Tito,

Thanks for this. Is this the same issue as #276?

Could you check if the fix detailed in

 https://bugs.devuan.org//cgi/bugreport.cgi?bug=276#10

works for you?

Comment out autospawn=no in /etc/pulse/client.conf.d/00-disable-autospawn.conf

Thanks

Mark

---

From: Tito <[email-masked]>
Date: Wed, 15 Jan 2020 14:38:54 +0100

> Comment out autospawn=no in /etc/pulse/client.conf.d/00-disable-autospawn.conf

Yes this fixes it.

---

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

control: merge -1 276 

> Yes this fixes it.

Good. Merging.

We will add this to the release notes.

Mark