:: Re: [DNG] Start Pipewire with deskt…
Etusivu
Poista viesti
Vastaa
Lähettäjä: tito
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] Start Pipewire with desktop session
On Sat, 09 Nov 2024 15:38:39 +0100
Martin Steigerwald <martin@???> wrote:

> Hi!
>
> I remember having read of an approach to start Pipewire automatically
> with a desktop session. I think it was via DBUS activation, but I am not
> sure.
>
> But I remember the approach referred using a script from Alpine Linux for
> it. I found:
>
> https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/pipewire/pipewire-launcher.sh
>
> But I wonder where to stuff it into the Plasma desktop session startup
> process or integrate it via DBUS activation. Preferably it would be an
> approach that works regardless of the init system being used and also
> regardless of the desktop session and whether Wayland or X11 is used.
>
> Any ideas? Feel free to point me to any previous post in case it has been
> already discussed. AFAIR this exact using a script from Alpine Linux
> approach may have been discussed here, but I did not find it anymore.
>
> In case I find a sufficiently elegant and stable approach I intend to work
> to have it integrated within Debian so Devuan can benefit from it.
>
> Best,



Hi,
for system wide integration I think it should go in:

/etc/xdg/autostart/


as .desktop file like e.g. pulseaudio.desktop:

Name=PulseAudio Sound System
Comment=Start the PulseAudio Sound System

All translations here.

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

Hope this helps.

Ciao,
Tito