xfce-detection.patch 808 B

123456789101112
  1. --- scripts/xdg-utils-common.in.OSmanOS 2012-10-08 18:26:46.000000000 +0300
  2. +++ scripts/xdg-utils-common.in 2013-04-05 18:22:55.816631216 +0300
  3. @@ -280,7 +280,7 @@
  4. elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
  5. elif [ x"$MATE_DESKTOP_SESSION_ID" != x"" ]; then DE=mate;
  6. elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;
  7. - elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
  8. + elif xprop -root | grep -qw XFCE_DESKTOP_WINDOW 2>&1; then DE=xfce;
  9. elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>&1; then DE=xfce
  10. fi
  11. fi