mirror of
git://slackware.nl/current.git
synced 2025-01-03 23:03:22 +01:00
e472158ace
patches/packages/kcron-21.12.3-x86_64-1_slack15.0.txz: Upgraded. This update fixes a security issue: kcron: Invalid temporary file handling. Thanks to pbslxw for the heads-up. For more information, see: https://kde.org/info/security/advisory-20220216-1.txt https://www.cve.org/CVERecord?id=CVE-2022-24986 (* Security fix *) patches/packages/plasma-workspace-5.23.5-x86_64-4_slack15.0.txz: Rebuilt. This update patches a security issue: ksmserver: Unauthorized users can access session manager. Thanks to pbslxw for the heads-up. For more information, see: https://kde.org/info/security/advisory-20240531-1.txt https://www.cve.org/CVERecord?id=CVE-2024-36041 (* Security fix *)
57 lines
2.3 KiB
Text
57 lines
2.3 KiB
Text
|
|
# Use ck-launch-session in runlevel 3 if that is available,
|
|
# to start and attach a ConsoleKit session to the X session:
|
|
mkdir -p $PKG/etc/X11/xinit
|
|
cat $CWD/post-install/plasma-workspace/xinit/xinitrc.kde \
|
|
| sed -e "s/@LIBDIRSUFFIX@/$LIBDIRSUFFIX/g" \
|
|
> $PKG/etc/X11/xinit/xinitrc.kde
|
|
chmod 0755 $PKG/etc/X11/xinit/xinitrc.kde
|
|
|
|
# Add a script that launches a Plasma Wayland session from the commandline:
|
|
mkdir -p $PKG/usr/bin
|
|
cat $CWD/post-install/plasma-workspace/scripts/startkwayland \
|
|
| sed -e "s/@LIBDIRSUFFIX@/$LIBDIRSUFFIX/g" \
|
|
> $PKG/usr/bin/startkwayland
|
|
chmod 0755 $PKG/usr/bin/startkwayland
|
|
|
|
# Install custom "full wayland" session
|
|
pushd $PKG/usr/share/wayland-sessions/
|
|
sed '/^Name/d;s/^Exec=/Exec=env GDK_BACKEND=wayland QT_QPA_PLATFORM=wayland /' plasmawayland.desktop > z_plasmafullwayland.desktop
|
|
echo 'Name=Plasma (Full Wayland)' >> z_plasmafullwayland.desktop
|
|
popd
|
|
|
|
# Add a "fail-safe" version of KDE Plasma desktop session.
|
|
# Prefix the name with "z_" because SDDM is braindead:
|
|
mkdir -p $PKG/usr/share/xsessions
|
|
cat $CWD/post-install/plasma-workspace/xsession/plasma-safe.desktop \
|
|
| sed -e "s,@PREFIX@,/usr,g" \
|
|
> $PKG/usr/share/xsessions/z_plasma-safe.desktop
|
|
|
|
# What is "plugins/plugins"?
|
|
mv $PKG/usr/lib$LIBDIRSUFFIX/qt5/plugins/{plugins,}/phonon_platform
|
|
rmdir $PKG/usr/lib$LIBDIRSUFFIX/qt5/plugins/plugins
|
|
|
|
# Move the polkit dbus configuration files to the proper place:
|
|
mkdir -p $PKG/etc
|
|
mv $PKG/etc/kde/dbus-1 $PKG/etc/
|
|
|
|
if [ "$SLACKPAM" == "no" ]; then
|
|
# For shadow, this file needs to be setuid root just like the KDE4 version:
|
|
if [ -f $PKG/usr/lib$LIBDIRSUFFIX/kcheckpass ]; then
|
|
chmod +s $PKG/usr/lib$LIBDIRSUFFIX/kcheckpass
|
|
fi
|
|
|
|
# ck-launch-session is needed for a Wayland session, since we do not have PAM:
|
|
sed -e 's/^Exec=dbus-launch/Exec=ck-launch-session dbus-launch --sh-syntax/' \
|
|
-i $PKG/usr/share/wayland-sessions/plasmawayland.desktop
|
|
else
|
|
# Install a PAM file for Plasma5 workspace:
|
|
install -Dm644 $CWD/post-install/plasma-workspace/pam.d/kde $PKG/etc/pam.d/kde
|
|
fi
|
|
|
|
if [ "$SLKELOGIND" == "yes" ]; then
|
|
# Since elogind does not set DBUS_SESSION_BUS_ADDRESS we need to start
|
|
# Plasma X11 session through dbus-run-session like Wayland is launched:
|
|
sed -i $PKG/usr/share/xsessions/plasma.desktop \
|
|
-e "s,^Exec=/,Exec=dbus-run-session /,"
|
|
fi
|