commit mate-session-manager for openSUSE:Factory
Hello community, here is the log from the commit of package mate-session-manager for openSUSE:Factory checked in at 2017-06-29 15:17:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mate-session-manager (Old) and /work/SRC/openSUSE:Factory/.mate-session-manager.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "mate-session-manager" Thu Jun 29 15:17:00 2017 rev:21 rq:506896 version:1.18.0 Changes: -------- --- /work/SRC/openSUSE:Factory/mate-session-manager/mate-session-manager.changes 2017-04-11 09:39:54.665596652 +0200 +++ /work/SRC/openSUSE:Factory/.mate-session-manager.new/mate-session-manager.changes 2017-06-29 15:17:07.815963567 +0200 @@ -1,0 +2,6 @@ +Wed Jun 28 19:20:44 UTC 2017 - sor.alexei@meowr.ru + +- Use update-alternatives to create the default.desktop xsession + (boo#1046352). + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mate-session-manager.spec ++++++ --- /var/tmp/diff_new_pack.jIklaB/_old 2017-06-29 15:17:09.779685974 +0200 +++ /var/tmp/diff_new_pack.jIklaB/_new 2017-06-29 15:17:09.779685974 +0200 @@ -47,6 +47,8 @@ BuildRequires: pkgconfig(xtrans) Requires: %{name}-branding >= %{_version} Requires: %{name}-gschemas >= %{version} +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: %{name}-lang %glib2_gsettings_schema_requires %if 0%{?suse_version} > 1320 @@ -112,18 +114,28 @@ %install %make_install -%find_lang %{name} %{?no_lang_C} +install -Dpm 0644 mate_defaults.conf %{buildroot}%{_sysconfdir}/mate_defaults.conf + +mkdir -p %{buildroot}%{_sysconfdir}/alternatives/ +touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop +ln -s %{_sysconfdir}/alternatives/default-xsession.desktop \ + %{buildroot}%{_datadir}/xsessions/default.desktop +%find_lang %{name} %{?no_lang_C} %suse_update_desktop_file mate-session-properties %suse_update_desktop_file %{buildroot}%{_datadir}/xsessions/mate.desktop -install -Dpm 0644 mate_defaults.conf %{buildroot}%{_sysconfdir}/mate_defaults.conf - %post %icon_theme_cache_post +%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \ + default-xsession.desktop %{_datadir}/xsessions/mate.desktop 20 %postun %icon_theme_cache_postun +if [ ! -f %{_datadir}/xsessions/mate.desktop ]; then + %{_sbindir}/update-alternatives --remove default-xsession.desktop \ + %{_datadir}/xsessions/mate.desktop +fi %post gschemas %glib2_gsettings_schema_post @@ -134,9 +146,10 @@ %files %defattr(-,root,root) %doc COPYING NEWS README +%ghost %{_sysconfdir}/alternatives/default-xsession.desktop %{_bindir}/mate-* %{_datadir}/%{name}/ -%{_datadir}/xsessions/mate.desktop +%{_datadir}/xsessions/*.desktop %{_datadir}/applications/mate-session-properties.desktop %{_datadir}/icons/hicolor/*/apps/mate-session-properties.* %{_mandir}/man?/mate-*.?%{?ext_man}
participants (1)
-
root@hilbert.suse.de