Hello community, here is the log from the commit of package xfce4-session for openSUSE:Factory checked in at 2017-05-18 20:48:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xfce4-session (Old) and /work/SRC/openSUSE:Factory/.xfce4-session.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xfce4-session" Thu May 18 20:48:39 2017 rev:74 rq:495664 version:4.12.1 Changes: -------- --- /work/SRC/openSUSE:Factory/xfce4-session/xfce4-session.changes 2016-09-24 15:29:15.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.xfce4-session.new/xfce4-session.changes 2017-05-18 20:48:40.156304237 +0200 @@ -1,0 +2,5 @@ +Wed May 17 14:19:47 UTC 2017 - fv...@suse.com + +- Use update-alternatives to create default.desktop xsession (boo#1030873) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xfce4-session.spec ++++++ --- /var/tmp/diff_new_pack.oqdNf2/_old 2017-05-18 20:48:40.844207156 +0200 +++ /var/tmp/diff_new_pack.oqdNf2/_new 2017-05-18 20:48:40.848206591 +0200 @@ -1,7 +1,7 @@ # # spec file for package xfce4-session # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -55,6 +55,8 @@ Requires: xfconf # bnc#845264 Requires: iceauth +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: %{name}-doc = %{version} Recommends: %{name}-lang = %{version} # minimal packages for an Xfce session @@ -139,6 +141,10 @@ rm %{buildroot}%{_datadir}/polkit-1/actions/org.xfce.session.policy \ %{buildroot}%{_libdir}/xfce4/session/xfsm-shutdown-helper +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop +ln -s %{_sysconfdir}/alternatives/default-xsession.desktop %{buildroot}%{_datadir}/xsessions/default.desktop + %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig @@ -146,10 +152,14 @@ %post %desktop_database_post %icon_theme_cache_post +%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \ + default-xsession.desktop %{_datadir}/xsessions/xfce.desktop 20 %postun %desktop_database_postun %icon_theme_cache_postun +[ -f %{_datadir}/xsessions/xfce.desktop ] || %{_sbindir}/update-alternatives \ + --remove default-xsession.desktop %{_datadir}/xsessions/xfce.desktop %files %defattr(-,root,root) @@ -166,6 +176,8 @@ %{_libdir}/xfce4 %{_datadir}/xfce %{_datadir}/xsessions/xfce.desktop +%ghost %{_datadir}/xsessions/default.desktop +%ghost %{_sysconfdir}/alternatives/default-xsession.desktop %{_datadir}/themes/* %{_datadir}/applications/*.desktop %{_datadir}/icons/*/*/*