summaryrefslogtreecommitdiffstats
path: root/kde/post-install
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xkde/post-install/oxygen-fonts.post-install2
-rw-r--r--kde/post-install/plasma-desktop.post-install2
-rw-r--r--kde/post-install/plasma-workspace.post-install27
-rw-r--r--kde/post-install/plasma-workspace/xinit/xinitrc.plasma24
-rw-r--r--kde/post-install/plasma-workspace/xsession/kde5init19
-rw-r--r--kde/post-install/powerdevil.post-install2
-rw-r--r--kde/post-install/sddm-qt5.post-install9
7 files changed, 46 insertions, 39 deletions
diff --git a/kde/post-install/oxygen-fonts.post-install b/kde/post-install/oxygen-fonts.post-install
index 0b23495..300b6c5 100755
--- a/kde/post-install/oxygen-fonts.post-install
+++ b/kde/post-install/oxygen-fonts.post-install
@@ -1,5 +1,5 @@
# Install fonts:
-FONTSDIR=/opt/kf5/share/fonts/oxygen
+FONTSDIR=/usr/share/fonts/TTF/oxygen
mkdir -p $PKG/$FONTSDIR
find . -name "*.ttf" -exec install -m644 {} $PKG/$FONTSDIR \;
diff --git a/kde/post-install/plasma-desktop.post-install b/kde/post-install/plasma-desktop.post-install
index 1a86dad..10b156d 100644
--- a/kde/post-install/plasma-desktop.post-install
+++ b/kde/post-install/plasma-desktop.post-install
@@ -1,4 +1,4 @@
# Move the polkit dbus configuration files to the proper place:
mkdir -p $PKG/etc
-mv $PKG/opt/kf5//etc/dbus-1 $PKG/etc/
+mv $PKG/etc/kde/dbus-1 $PKG/etc/
diff --git a/kde/post-install/plasma-workspace.post-install b/kde/post-install/plasma-workspace.post-install
index 6adbcb6..bb5ddec 100644
--- a/kde/post-install/plasma-workspace.post-install
+++ b/kde/post-install/plasma-workspace.post-install
@@ -7,35 +7,32 @@ 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/kf5/lib64/libexec/kf5/start_kdeinit_wrapper,/usr/lib64/libexec/kf5/start_kdeinit_wrapper,' -i $PKG/opt/kf5/bin/startkde
+## 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
# 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@,/opt/kf5,g" \
+ | 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@,/opt/kf5,g" \
+ | sed -e "s,@PREFIX@,/usr,g" \
> $PKG/usr/share/xsessions/kde5-plasma-safe.desktop
-mkdir -p $PKG/opt/kf5/bin
+mkdir -p $PKG/usr/bin
cat $CWD/post-install/plasma-workspace/xsession/kde5init \
- | sed -e "s,@PREFIX@,/opt/kf5,g" \
+ | sed -e "s,@PREFIX@,/usr,g" \
-e "s,@LIBDIRSUFFIX@,$LIBDIRSUFFIX,g" \
- > $PKG/opt/kf5/bin/kde5init
-chmod 755 $PKG/opt/kf5/bin/kde5init
+ > $PKG/usr/bin/kde5init
+chmod 755 $PKG/usr/bin/kde5init
# What is "plugins/plugins"?
-mv $PKG/opt/kf5/lib64/qt5/plugins/{plugins,}/phonon_platform
-rmdir $PKG/opt/kf5/lib64/qt5/plugins/plugins
+mv $PKG/usr/lib64/qt5/plugins/{plugins,}/phonon_platform
+rmdir $PKG/usr/lib64/qt5/plugins/plugins
# Move the polkit dbus configuration files to the proper place:
mkdir -p $PKG/etc
-mv $PKG/opt/kf5//etc/dbus-1 $PKG/etc/
-
-# Create a utility symlink - required on x86 but not on x86_64 ???
-ln -s /usr/lib${LIBDIRSUFFIX}/libexec/kf5 $PKG/opt/kf5/lib${LIBDIRSUFFIX}/libexec/
+mv $PKG//etc/kde/dbus-1 $PKG/etc/
# For shadow, this file needs to be setuid root just like the KDE4 version:
-chmod +s $PKG/opt/kf5/lib$LIBDIRSUFFIX/libexec/kcheckpass
+chmod +s $PKG/usr/lib$LIBDIRSUFFIX/libexec/kcheckpass
diff --git a/kde/post-install/plasma-workspace/xinit/xinitrc.plasma b/kde/post-install/plasma-workspace/xinit/xinitrc.plasma
index 18fd622..390020e 100644
--- a/kde/post-install/plasma-workspace/xinit/xinitrc.plasma
+++ b/kde/post-install/plasma-workspace/xinit/xinitrc.plasma
@@ -24,18 +24,18 @@ if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
-# KDE Frameworks 5 plus Plasma Next:
-export KF5=/opt/kf5
-export PATH=$KF5/bin:$KF5/lib@LIBDIRSUFFIX@/qt5/bin:$PATH
-export QML2_IMPORT_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/qml:/usr/lib@LIBDIRSUFFIX@/qt5/qml
-export QT_PLUGIN_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/plugins:/usr/lib@LIBDIRSUFFIX@/qt5/plugins
-export XDG_CONFIG_DIRS=$KF5/etc/xdg:/etc/xdg:/etc/kde/xdg
-export XDG_DATA_DIRS=$KF5/share:/usr/share:/usr/local/share
-
-export XDG_DATA_HOME="$HOME/.local5"
-export XDG_CONFIG_HOME="$HOME/.config5"
-export XDG_CACHE_HOME="$HOME/.cache5"
-export KDEHOME="$HOME/.kde5"
+## KDE Frameworks 5 plus Plasma Next:
+#export KF5=/opt/kf5
+#export PATH=$KF5/bin:$KF5/lib@LIBDIRSUFFIX@/qt5/bin:$PATH
+#export QML2_IMPORT_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/qml:/usr/lib@LIBDIRSUFFIX@/qt5/qml
+#export QT_PLUGIN_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/plugins:/usr/lib@LIBDIRSUFFIX@/qt5/plugins
+#export XDG_CONFIG_DIRS=$KF5/etc/xdg:/etc/xdg:/etc/kde/xdg
+#export XDG_DATA_DIRS=$KF5/share:/usr/share:/usr/local/share
+
+#export XDG_DATA_HOME="$HOME/.local5"
+#export XDG_CONFIG_HOME="$HOME/.config5"
+#export XDG_CACHE_HOME="$HOME/.cache5"
+#export KDEHOME="$HOME/.kde5"
# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
diff --git a/kde/post-install/plasma-workspace/xsession/kde5init b/kde/post-install/plasma-workspace/xsession/kde5init
index 75fb697..b9acc91 100644
--- a/kde/post-install/plasma-workspace/xsession/kde5init
+++ b/kde/post-install/plasma-workspace/xsession/kde5init
@@ -1,15 +1,16 @@
# KDE Frameworks 5 plus Plasma Next:
export KF5=@PREFIX@
-export PATH=$KF5/bin:$KF5/lib@LIBDIRSUFFIX@/qt5/bin:$PATH
-export QML2_IMPORT_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/qml:/usr/lib@LIBDIRSUFFIX@/qt5/qml
-export QT_PLUGIN_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/plugins:/usr/lib@LIBDIRSUFFIX@/qt5/plugins
-export XDG_CONFIG_DIRS=$KF5/etc/xdg:/etc/xdg:/etc/kde/xdg
-export XDG_DATA_DIRS=$KF5/share:/usr/share:/usr/local/share
-export XDG_DATA_HOME="$HOME/.local5"
-export XDG_CONFIG_HOME="$HOME/.config5"
-export XDG_CACHE_HOME="$HOME/.cache5"
-export KDEHOME="$HOME/.kde5"
+#export PATH=$KF5/bin:$KF5/lib@LIBDIRSUFFIX@/qt5/bin:$PATH
+#export QML2_IMPORT_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/qml:/usr/lib@LIBDIRSUFFIX@/qt5/qml
+#export QT_PLUGIN_PATH=$KF5/lib@LIBDIRSUFFIX@/qt5/plugins:/usr/lib@LIBDIRSUFFIX@/qt5/plugins
+#export XDG_CONFIG_DIRS=$KF5/etc/xdg:/etc/xdg:/etc/kde/xdg
+#export XDG_DATA_DIRS=$KF5/share:/usr/share:/usr/local/share
+
+#export XDG_DATA_HOME="$HOME/.local5"
+#export XDG_CONFIG_HOME="$HOME/.config5"
+#export XDG_CACHE_HOME="$HOME/.cache5"
+#export KDEHOME="$HOME/.kde5"
# Start the window manager:
exec $KF5/bin/startkde "$*"
diff --git a/kde/post-install/powerdevil.post-install b/kde/post-install/powerdevil.post-install
index 1a86dad..19920d4 100644
--- a/kde/post-install/powerdevil.post-install
+++ b/kde/post-install/powerdevil.post-install
@@ -1,4 +1,4 @@
# Move the polkit dbus configuration files to the proper place:
mkdir -p $PKG/etc
-mv $PKG/opt/kf5//etc/dbus-1 $PKG/etc/
+mv $PKG//etc/kde/dbus-1 $PKG/etc/
diff --git a/kde/post-install/sddm-qt5.post-install b/kde/post-install/sddm-qt5.post-install
index 0bcecce..a99ec44 100644
--- a/kde/post-install/sddm-qt5.post-install
+++ b/kde/post-install/sddm-qt5.post-install
@@ -6,6 +6,15 @@ rm -rf $PKG/etc/pam.d
# Set the KDE5 theme 'breeze' as default, integrates better with Plasma 5:
sed -i -e "s/^CurrentTheme.*/CurrentTheme=breeze/" $PKG/etc/sddm.conf
+# SDDM follows the systemd convention of starting the first graphical session
+# on tty1. We prefer the old convention where tty1 through tty6
+# are reserved for text consoles:
+cat <<EOT >> $PKG//etc/sddm.conf
+
+[XDisplay]
+MinimumVT=7
+EOT
+
# Do not clobber existing configuration files:
mv $PKG/etc/sddm.conf{,.new}