You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
167 lines
6.9 KiB
167 lines
6.9 KiB
diff --git a/startkde/startkde.cmake b/startkde/startkde.cmake
|
|
index 54e2850..2c050b8 100644
|
|
--- a/startkde/startkde.cmake
|
|
+++ b/startkde/startkde.cmake
|
|
@@ -164,48 +164,6 @@ for prefix in `echo $scriptpath`; do
|
|
done
|
|
done
|
|
|
|
-# Activate the kde font directories.
|
|
-#
|
|
-# There are 4 directories that may be used for supplying fonts for KDE.
|
|
-#
|
|
-# There are two system directories. These belong to the administrator.
|
|
-# There are two user directories, where the user may add her own fonts.
|
|
-#
|
|
-# The 'override' versions are for fonts that should come first in the list,
|
|
-# i.e. if you have a font in your 'override' directory, it will be used in
|
|
-# preference to any other.
|
|
-#
|
|
-# The preference order looks like this:
|
|
-# user override, system override, X, user, system
|
|
-#
|
|
-# Where X is the original font database that was set up before this script
|
|
-# runs.
|
|
-
|
|
-usr_odir=$HOME/.fonts/kde-override
|
|
-usr_fdir=$HOME/.fonts
|
|
-
|
|
-if test -n "$KDEDIRS"; then
|
|
- kdedirs_first=`echo "$KDEDIRS"|sed -e 's/:.*//'`
|
|
- sys_odir=$kdedirs_first/share/fonts/override
|
|
- sys_fdir=$kdedirs_first/share/fonts
|
|
-else
|
|
- sys_odir=$KDEDIR/share/fonts/override
|
|
- sys_fdir=$KDEDIR/share/fonts
|
|
-fi
|
|
-
|
|
-# We run mkfontdir on the user's font dirs (if we have permission) to pick
|
|
-# up any new fonts they may have installed. If mkfontdir fails, we still
|
|
-# add the user's dirs to the font path, as they might simply have been made
|
|
-# read-only by the administrator, for whatever reason.
|
|
-
|
|
-test -d "$sys_odir" && xset +fp "$sys_odir"
|
|
-test -d "$usr_odir" && (mkfontdir "$usr_odir" ; xset +fp "$usr_odir")
|
|
-test -d "$usr_fdir" && (mkfontdir "$usr_fdir" ; xset fp+ "$usr_fdir")
|
|
-test -d "$sys_fdir" && xset fp+ "$sys_fdir"
|
|
-
|
|
-# Ask X11 to rebuild its font list.
|
|
-xset fp rehash
|
|
-
|
|
# Set a left cursor instead of the standard X11 "X" cursor, since I've heard
|
|
# from some users that they're confused and don't know what to do. This is
|
|
# especially necessary on slow machines, where starting KDE takes one or two
|
|
@@ -282,22 +240,21 @@ if test $? -ne 0; then
|
|
# Startup error
|
|
echo 'startkde: Could not sync environment to dbus.' 1>&2
|
|
test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
|
|
- xmessage -geometry 500x100 "Could not sync environment to dbus."
|
|
+ message "Could not sync environment to dbus."
|
|
exit 1
|
|
fi
|
|
|
|
-# We set LD_BIND_NOW to increase the efficiency of kdeinit.
|
|
-# kdeinit unsets this variable before loading applications.
|
|
-LD_BIND_NOW=true @CMAKE_INSTALL_FULL_LIBEXECDIR_KF5@/start_kdeinit_wrapper --kded +kcminit_startup
|
|
+@CMAKE_INSTALL_FULL_LIBEXECDIR_KF5@/start_kdeinit_wrapper --kded +kcminit_startup
|
|
if test $? -ne 0; then
|
|
# Startup error
|
|
echo 'startkde: Could not start kdeinit5. Check your installation.' 1>&2
|
|
test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null
|
|
- xmessage -geometry 500x100 "Could not start kdeinit5. Check your installation."
|
|
+ message "Could not start kdeinit5. Check your installation."
|
|
exit 1
|
|
fi
|
|
|
|
-qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit &
|
|
+qdbus=qdbus-qt5
|
|
+$qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit &
|
|
|
|
# finally, give the session control to the session manager
|
|
# see kdebase/ksmserver for the description of the rest of the startup sequence
|
|
@@ -330,13 +287,13 @@ if test x"$wait_drkonqi"x = x"true"x ; then
|
|
# wait for remaining drkonqi instances with timeout (in seconds)
|
|
wait_drkonqi_timeout=`kreadconfig5 --file startkderc --group WaitForDrKonqi --key Timeout --default 900`
|
|
wait_drkonqi_counter=0
|
|
- while qdbus | grep "^[^w]*org.kde.drkonqi" > /dev/null ; do
|
|
+ while $qdbus | grep "^[^w]*org.kde.drkonqi" > /dev/null ; do
|
|
sleep 5
|
|
wait_drkonqi_counter=$((wait_drkonqi_counter+5))
|
|
if test "$wait_drkonqi_counter" -ge "$wait_drkonqi_timeout" ; then
|
|
# ask remaining drkonqis to die in a graceful way
|
|
- qdbus | grep 'org.kde.drkonqi-' | while read address ; do
|
|
- qdbus "$address" "/MainApplication" "quit"
|
|
+ $qdbus | grep 'org.kde.drkonqi-' | while read address ; do
|
|
+ $qdbus "$address" "/MainApplication" "quit"
|
|
done
|
|
break
|
|
fi
|
|
diff --git a/startkde/startplasma.cmake b/startkde/startplasma.cmake
|
|
index a5d09fa..a73cb90 100644
|
|
--- a/startkde/startplasma.cmake
|
|
+++ b/startkde/startplasma.cmake
|
|
@@ -140,7 +140,8 @@ if test $? -ne 0; then
|
|
exit 1
|
|
fi
|
|
|
|
-qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit
|
|
+qdbus=qdbus-qt5
|
|
+$qdbus org.kde.KSplash /KSplash org.kde.KSplash.setStage kinit
|
|
|
|
# finally, give the session control to the session manager
|
|
# see kdebase/ksmserver for the description of the rest of the startup sequence
|
|
@@ -169,13 +170,13 @@ if test x"$wait_drkonqi"x = x"true"x ; then
|
|
# wait for remaining drkonqi instances with timeout (in seconds)
|
|
wait_drkonqi_timeout=`kreadconfig5 --file startkderc --group WaitForDrKonqi --key Timeout --default 900`
|
|
wait_drkonqi_counter=0
|
|
- while qdbus | grep "^[^w]*org.kde.drkonqi" > /dev/null ; do
|
|
+ while $qdbus | grep "^[^w]*org.kde.drkonqi" > /dev/null ; do
|
|
sleep 5
|
|
wait_drkonqi_counter=$((wait_drkonqi_counter+5))
|
|
if test "$wait_drkonqi_counter" -ge "$wait_drkonqi_timeout" ; then
|
|
# ask remaining drkonqis to die in a graceful way
|
|
- qdbus | grep 'org.kde.drkonqi-' | while read address ; do
|
|
- qdbus "$address" "/MainApplication" "quit"
|
|
+ $qdbus | grep 'org.kde.drkonqi-' | while read address ; do
|
|
+ $qdbus "$address" "/MainApplication" "quit"
|
|
done
|
|
break
|
|
fi
|
|
diff --git a/startkde/startplasmacompositor.cmake b/startkde/startplasmacompositor.cmake
|
|
index 8ac47aa..a4ddfb3 100644
|
|
--- a/startkde/startplasmacompositor.cmake
|
|
+++ b/startkde/startplasmacompositor.cmake
|
|
@@ -3,6 +3,8 @@
|
|
# DEFAULT Plasma STARTUP SCRIPT ( @PROJECT_VERSION@ )
|
|
#
|
|
|
|
+qdbus=qdbus-qt5
|
|
+
|
|
# We need to create config folder so we can write startupconfigkeys
|
|
if [ ${XDG_CONFIG_HOME} ]; then
|
|
configDir=$XDG_CONFIG_HOME;
|
|
@@ -120,12 +122,12 @@ fi
|
|
|
|
# Get a property value from org.freedesktop.locale1
|
|
queryLocale1() {
|
|
- qdbus --system org.freedesktop.locale1 /org/freedesktop/locale1 "$1"
|
|
+ $qdbus --system org.freedesktop.locale1 /org/freedesktop/locale1 "$1"
|
|
}
|
|
|
|
# Query whether org.freedesktop.locale1 is available. If it is, try to
|
|
# set XKB_DEFAULT_{MODEL,LAYOUT,VARIANT,OPTIONS} accordingly.
|
|
-if qdbus --system org.freedesktop.locale1 >/dev/null 2>/dev/null; then
|
|
+if $qdbus --system org.freedesktop.locale1 >/dev/null 2>/dev/null; then
|
|
# Do not overwrite existing values. There is no point in setting only some
|
|
# of them as then they would not match anymore.
|
|
if [ -z "${XKB_DEFAULT_MODEL}" -a -z "${XKB_DEFAULT_LAYOUT}" -a \
|
|
@@ -175,7 +177,7 @@ fi
|
|
export XDG_DATA_DIRS
|
|
|
|
# Make sure that D-Bus is running
|
|
-if qdbus >/dev/null 2>/dev/null; then
|
|
+if $qdbus >/dev/null 2>/dev/null; then
|
|
: # ok
|
|
else
|
|
echo 'startplasmacompositor: Could not start D-Bus. Can you call qdbus?' 1>&2
|