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
## 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
#exec --no-startup-id nextcloud

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

Loading…
Cancel
Save