aboutsummaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 1dfcf81..b5b20a6 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1898,6 +1898,16 @@ none / tmpfs defaults 1 1
EOT
+# Pipewire 1.0.0 is capable of replacing pulseaudio and jack2:
+if chroot ${LIVE_ROOTDIR} pkg-config libpipewire-0.3 --atleast-version=1
+then
+ # Make pipewire the default, kill pulseaudio:
+ if [ -x ${LIVE_ROOTDIR}/usr/sbin/pipewire-enable.sh ]; then
+ echo "-- Enabling pipewire"
+ chroot ${LIVE_ROOTDIR} /usr/sbin/pipewire-enable.sh
+ fi
+fi
+
# Prevent loop devices (sxz modules) from appearing in filemanagers:
mkdir -p ${LIVE_ROOTDIR}/etc/udev/rules.d
cat <<EOL > ${LIVE_ROOTDIR}/etc/udev/rules.d/11-local.rules
@@ -2781,12 +2791,6 @@ setenv GDK_BACKEND x11
EOT
chmod 755 ${LIVE_ROOTDIR}/etc/profile.d/kwayland.*
-# Make pipewire the default, kill pulseaudio:
-if [ -x ${LIVE_ROOTDIR}/usr/sbin/pipewire-enable.sh ]; then
- echo "-- Enabling pipewire"
- chroot ${LIVE_ROOTDIR} /usr/sbin/pipewire-enable.sh
-fi
-
# Ensure that color Emojis work in Qt applications:
mkdir -p ${LIVE_ROOTDIR}/usr/share/fontconfig/conf.avail
cat <<EOT >${LIVE_ROOTDIR}/usr/share/fontconfig/conf.avail/99-noto-mono-color-emoji.conf: