summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-12-04 10:52:33 +0100
committer Eric Hameleers <alien@slackware.com>2022-12-04 10:52:33 +0100
commit117a7d9bb7f9b4f5811a8e3d00626205e0f966f3 (patch)
treed0d7bbc7a78a11964b1cfcdf5d9d944d15417372 /make_slackware_live.sh
parent9e76371f67f403f5d2ad4ac5b1ba8084cc7a263a (diff)
downloadliveslak-117a7d9bb7f9b4f5811a8e3d00626205e0f966f3.tar.gz
liveslak-117a7d9bb7f9b4f5811a8e3d00626205e0f966f3.tar.xz
Ensure that color Emojis work in Qt applications
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 7932786..ac4b86d 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -2686,6 +2686,33 @@ setenv GDK_BACKEND x11
EOT
chmod 755 ${LIVE_ROOTDIR}/etc/profile.d/kwayland.*
+# 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:
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Noto Color Emoji</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Noto Color Emoji</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Noto Color Emoji</family>
+ </prefer>
+ </alias>
+</fontconfig>
+EOT
+
fi # End Plasma5
if [ "$LIVEDE" = "DLACK" ]; then