summaryrefslogtreecommitdiffstats
path: root/kde/post-install/kde-workspace.post-install
blob: 5b168b1f83db1b2d3499b4ecad77534bee5df9fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# Use ck-launch-session in runlevel 3,
# to start and attach a ConsoleKit session to the X session:
mkdir -p $PKG/etc/X11/xinit
cat $CWD/post-install/kde-workspace/xinit/xinitrc.kde > $PKG/etc/X11/xinit/xinitrc.kde
chmod 0755 $PKG/etc/X11/xinit/xinitrc.kde

# This is fubar:
rm -f $PKG/usr/share/icons/hicolor/index.theme

# Rename the startkde script so that it does not conflict with plasma-workspace:
mv $PKG/usr/bin/startkde $PKG/usr/bin/startkde4

# Remove symlinks that clash with plasma-workspace:
for SOFILE in libksgrd libksignalplotter liblsofui libprocesscore libprocessui libtaskmanager ; do
  rm $PKG/usr/lib${LIBDIRSUFFIX}/${SOFILE}.so
done

# Remove include files that clash with plasma-workspace:
for INCDIR in ksysguard taskmanager ; do
  rm -r $PKG/usr/include/${INCDIR}
done

# Remove the dbus and polkit dbus files that clash woth plasma-workspace:
rm -r $PKG/etc/kde/dbus-1 $PKG/etc/dbus-1 $PKG/usr/share/dbus-1
rm -r $PKG/usr/share/polkit-1