diff -rub a/scripts/startxfce4.in b/scripts/startxfce4.in --- a/scripts/startxfce4.in 2024-03-31 17:51:38.000000000 +0800 +++ b/scripts/startxfce4.in 2024-04-02 15:01:59.917577714 +0800 @@ -96,6 +96,10 @@ then XDG_DATA_DIRS="$XDG_DATA_DIRS:@_datadir_@" fi +if test -d "@_datadir_@/xfce" +then + XDG_DATA_DIRS="@_datadir_@/xfce:$XDG_DATA_DIRS" +fi export XDG_DATA_DIRS if test "x$XDG_CONFIG_DIRS" = "x" diff -rub a/scripts/xinitrc.in.in b/scripts/xinitrc.in.in --- a/scripts/xinitrc.in.in 2024-03-31 17:51:38.000000000 +0800 +++ b/scripts/xinitrc.in.in 2024-04-02 15:04:34.326572166 +0800 @@ -46,12 +46,6 @@ fi [ -d "$XDG_CACHE_HOME" ] || mkdir "$XDG_CACHE_HOME" -# set up XDG user directores. see -# http://freedesktop.org/wiki/Software/xdg-user-dirs -if command -v xdg-user-dirs-update >/dev/null 2>&1; then - xdg-user-dirs-update -fi - if test "x$XFCE4_SESSION_COMPOSITOR" = "x" then # For now, start with an empty list @@ -115,14 +109,11 @@ # check if we start xfce4-session with ck-launch-session. this is only # required for starting from a console, not a login manager if test "x$XFCE4_SESSION_WITH_CK" = "x1"; then - if command -v ck-launch-session >/dev/null 2>&1; then - exec ck-launch-session xfce4-session - else - echo - echo "You have tried to start Xfce with consolekit support, but" - echo "ck-launch-session is not installed." - echo "Aborted startup..." - echo + if ! ck-launch-session xfce4-session; then + cat >&2 <<'EOF' +Failed to start Xfce with consolekit support. +Aborted startup... +EOF exit 1 fi else