pulseaudio starting in i3 is more resilient and (hopefully) last fix of today for .xinitrc

master
Meliurwen 3 years ago
parent dd8b6848df
commit a95daa2e7d
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 2
      i3/.config/i3/config
  2. 13
      x/.xinitrc

@ -239,7 +239,7 @@ exec --no-startup-id envsubst < ~/.config/dunst/dunstrc.template > ~/.config/dun
# Pulseaudio # Pulseaudio
## Necessary if you have no DE (gnome, xfce, etc...) under i3. ## Necessary if you have no DE (gnome, xfce, etc...) under i3.
exec pulseaudio --kill && pulseaudio --start exec --no-startup-id pulseaudio --kill && sleep 1 && pulseaudio --start
# Nextcloud Desktop # Nextcloud Desktop
#exec --no-startup-id nextcloud #exec --no-startup-id nextcloud

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -e
# This file is used by xinit and its wrapper startx. # This file is used by xinit and its wrapper startx.
# Display managers like xdm doesn't use this file at all # Display managers like xdm doesn't use this file at all
# #
@ -20,11 +22,14 @@ fi
# consequences of removing them. # consequences of removing them.
# run all system xinitrc shell scripts. # run all system xinitrc shell scripts.
if [ -d /etc/X11/Xsession.d ]; then if [ -d /etc/X11/Xsession.d ]; then
for i in /etc/X11/Xsession.d/* ; do SESSIONFILES=$(run-parts --list /etc/X11/Xsession.d)
if [ -x "$i" ]; then if [ -n "$SESSIONFILES" ]; then
. "$i" set +e
fi for SESSIONFILE in $SESSIONFILES; do
. $SESSIONFILE
done done
set -e
fi
fi fi
# To avoid very solw startup of many GTK apps # To avoid very solw startup of many GTK apps

Loading…
Cancel
Save