forked from pool/xfce4-session
5e18a12fc5
- Update to version 4.18.1 * Update copyright year * Fix bus name acquisition/ownership (#54, !34) * Use XfceScreensaver from Libxfce4ui (!35) * build: Fix previous commit * build: Fix autotools warnings * Avoid duplicating directories in the tail of $XDG_* envs (#111, !21) * settings: Fix memory leak * libxfsm: Fix wrong return value * Fix memory leaks when opening xfce4-session-settings * Fix blurry session snapshots (!33) * Fix blurry icons in autostart tab when UI scale > 1 (!33) * build: Fix GTK deprecation warnings (!32) * build: Fix some other GDK deprecation warnings (!32) * build: Fix gdk_error_trap_push/pop() deprecation warnings (!32) * build: Let xdt-depends.m4 macros set GLib macros (!32) * build: Remove GDK_VERSION_MIN_REQUIRED/MAX_ALLOWED (!32) * Make use of translations for run hooks (Fixes #156) * Translation Updates - Regenerate xfce4-session-adapt-session-scripts-git.patch and xfce4-session-adapt-session-scripts.patch - Remove two stray comments about add-light-locker-support patches OBS-URL: https://build.opensuse.org/request/show/1064263 OBS-URL: https://build.opensuse.org/package/show/X11:xfce/xfce4-session?expand=0&rev=157
51 lines
1.5 KiB
Diff
51 lines
1.5 KiB
Diff
diff -rub a/scripts/startxfce4.in b/scripts/startxfce4.in
|
|
--- a/scripts/startxfce4.in 2019-05-13 13:08:40.936637683 +0800
|
|
+++ b/scripts/startxfce4.in 2019-05-13 13:16:44.378397419 +0800
|
|
@@ -76,6 +76,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 2019-05-13 13:08:40.936637683 +0800
|
|
+++ b/scripts/xinitrc.in.in 2019-05-13 13:20:51.177252943 +0800
|
|
@@ -44,12 +44,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
|
|
-
|
|
# For now, start with an empty list
|
|
XRESOURCES=""
|
|
|
|
@@ -81,14 +75,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
|