summaryrefslogtreecommitdiffstats
path: root/kde/post-install
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-10-12 00:11:17 +0200
committer Eric Hameleers <alien@slackware.com>2015-10-12 00:11:17 +0200
commit3ef8e2da0b2eb774642047b2e08747302b3ffbfd (patch)
tree43cf75b5b46e4b23d13302a0218b126de12c2c83 /kde/post-install
parent25b2a956587541b0208692c4a2b6ee9a351e219f (diff)
downloadktown-3ef8e2da0b2eb774642047b2e08747302b3ffbfd.tar.gz
ktown-3ef8e2da0b2eb774642047b2e08747302b3ffbfd.tar.xz
kde/plasma/plasma-workspace: provide a "failsafe" option for Plasma.
Diffstat (limited to 'kde/post-install')
-rw-r--r--kde/post-install/plasma-workspace.post-install23
-rw-r--r--kde/post-install/plasma-workspace/xsession/plasma-safe.desktop9
2 files changed, 14 insertions, 18 deletions
diff --git a/kde/post-install/plasma-workspace.post-install b/kde/post-install/plasma-workspace.post-install
index 17384b4..a2cff96 100644
--- a/kde/post-install/plasma-workspace.post-install
+++ b/kde/post-install/plasma-workspace.post-install
@@ -7,24 +7,11 @@ cat $CWD/post-install/plasma-workspace/xinit/xinitrc.plasma \
> $PKG/etc/X11/xinit/xinitrc.plasma
chmod 0755 $PKG/etc/X11/xinit/xinitrc.plasma
-## Fix a path in the startkde script:
-#sed -e 's,/opt/kd5/lib64/libexec/kf5/start_kdeinit_wrapper,/usr/lib64/libexec/kf5/start_kdeinit_wrapper,' -i $PKG/opt/kf5/bin/startkde
-
-# No longer needed, plasma-workspace includes its own file now:
-## Allow other login managers to show KDE Plasma2 desktop sessions:
-#mkdir -p $PKG/usr/share/xsessions
-#cat $CWD/post-install/plasma-workspace/xsession/kde5-plasma.desktop \
-# | sed -e "s,@PREFIX@,/usr,g" \
-# > $PKG/usr/share/xsessions/kde5-plasma.desktop
-#cat $CWD/post-install/plasma-workspace/xsession/kde5-plasma-safe.desktop \
-# | sed -e "s,@PREFIX@,/usr,g" \
-# > $PKG/usr/share/xsessions/kde5-plasma-safe.desktop
-#mkdir -p $PKG/usr/bin
-#cat $CWD/post-install/plasma-workspace/xsession/kde5init \
-# | sed -e "s,@PREFIX@,/usr,g" \
-# -e "s,@LIBDIRSUFFIX@,$LIBDIRSUFFIX,g" \
-# > $PKG/usr/bin/kde5init
-#chmod 755 $PKG/usr/bin/kde5init
+# Add a "fail-safe" version of KDE Plasma desktop session:
+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/plasma-safe.desktop
# What is "plugins/plugins"?
mv $PKG/usr/lib64/qt5/plugins/{plugins,}/phonon_platform
diff --git a/kde/post-install/plasma-workspace/xsession/plasma-safe.desktop b/kde/post-install/plasma-workspace/xsession/plasma-safe.desktop
new file mode 100644
index 0000000..9a3f9c7
--- /dev/null
+++ b/kde/post-install/plasma-workspace/xsession/plasma-safe.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=XSession
+Exec=/usr/bin/startkde --failsafe
+TryExec=/usr/bin/startkde
+DesktopNames=KDE
+Name=Plasma (Failsafe)
+Comment=Plasma by KDE (Failsafe)
+