systemd: always enable xdg-autostart option with kde
Enabling the xdg-autostart option in systemd in recommended so that plasma and all related services can be started (and stopped) with systemd instead of relying on what is called the 'classic boot' model. This fixes an important issue for me where the platofrm would freeze for 90 seconds on restart or shutdown because of the kded6 daemon not quitting. See the following for an example: https://bugs.kde.org/show_bug.cgi?id=478313 As an added bonus, the sddm.service file can now be left as-is since it will get started automatically (it was already part of the graphics target). Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
This commit is contained in:
@@ -69,9 +69,6 @@ do_install:append() {
|
||||
install -d ${D}${localstatedir}/lib/sddm
|
||||
chown -R sddm:sddm ${D}${localstatedir}/lib/sddm
|
||||
chmod 0750 ${D}${localstatedir}/lib/sddm
|
||||
|
||||
# make SDDM actually auto-start
|
||||
echo "WantedBy=multi-user.target" >> ${D}/${systemd_unitdir}/system/sddm.service
|
||||
}
|
||||
|
||||
PACKAGES =+ " \
|
||||
|
||||
12
recipes-support/systemd_%.bbappend
Normal file
12
recipes-support/systemd_%.bbappend
Normal file
@@ -0,0 +1,12 @@
|
||||
# Enable the xdg-autostart option so .desktop files are automatically
|
||||
# converted to systemd user services. If this option is not present,
|
||||
# 'startplasma' falls back on 'classic boot' and this can cause issues
|
||||
# like:
|
||||
#
|
||||
# https://bugs.kde.org/show_bug.cgi?id=478313
|
||||
#
|
||||
# To get an idea of how plasma starts:
|
||||
#
|
||||
# https://github.com/KDE/plasma-workspace/blob/master/startkde/startplasma.cpp
|
||||
#
|
||||
PACKAGECONFIG:append = " xdg-autostart"
|
||||
Reference in New Issue
Block a user