Userland autostart pulseaudio starts after session triggered apps such as firefox
- TDE version: R14.1
- Distribution: Buster
- Hardware: amd64
On two desktops I observer following behaviour.
When firefox is open when desktop being shut down, or Skype (it is running as applet). After start up these are triggered before pulseaudio being started.
It looks like the TDE session starts previously running apps before userland such as pulseaudio.
Steps to reproduce
- Login and make sure PA is running
- KMix shows PA as default audio mixer
- Start Firefox and make sure it can play audio (youtube or so)
- without closing Firefox reboot
- Firefox starts automatically (recoverd by SM)
- Firefox can not play audio
- KMix is missing PA in the mixer
- Restart Firefox and KMix and they behave as expected
Looks like if priority is set to 0 it works, other wise not.
I did a copy of pulseaudio.desktop to /opt/trinity/etc/xdg/autostart/pulseaudio.desktop
I did a copy of start-pulseaudio-x11 to start-pulseaudio-x11-trinity
if [ x"$TDE_FULL_SESSION" = x"true" ]; then /usr/bin/pactl load-module module-device-manager "do_routing=1" > /dev/null fi
It works as expected. I am wondering if something changed on TDE side. In the README.autostart it says
KDE session startup occurs in the following sequence:
Window manager startup
Autostart phase 1
Autostart phase 2
When looking into the launcher debug it seems that it spawns any kind of apps in the phase 1 - thus it could be luck or not if PA is staretd before whatever needs it.
I'm just wondering why it does not started before the session stuff.
I guess the difference is that you are autostarting it at phase 0 now, althogh I am just guessing by looking at your comment.
In any case this is a topic we should come up with a good solution, since I guess more and more people will use PA at some point.
yes, if it was not clear let me explain once again.
- tested with phase=1, but without success
- tested with phase=0, with success
My question now is regarding the documentation describing the startup of TDE. Are firefox or skype not part of the session restauration. Why is not phase 0 in the description?
It could be the problem is somewhere else.
Deleting a branch is permanent. It CANNOT be undone. Continue?