Accepting request 360153 from home:tittiatcoke:branches:GNOME:Factory

This would resolve a current issue detected with the last tumbleweed. Using /usr/share/applications/mimeapps.list sets the mime associations for all desktops. By creating /usr/share/applications/gnome-mimeapps.list, this stays desktop specific and would not mess up Plasma5

OBS-URL: https://build.opensuse.org/request/show/360153
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=288
This commit is contained in:
Dominique Leuenberger 2016-02-18 15:27:47 +00:00 committed by Git OBS Bridge
parent 498a5d75c5
commit 66c396ad28
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Feb 18 13:56:53 UTC 2016 - tittiatcoke@gmail.com
- Follow the freedesktop conventions for the mime handler
associations. The created link is gnome specific, so make it
specific (gnome-mimeapps.list). This prevents association
problems in Plasma 5 (boo#966739)
https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html
-------------------------------------------------------------------
Thu Jan 21 11:45:40 UTC 2016 - dimstar@opensuse.org

View File

@ -302,7 +302,7 @@ mkdir -p %{buildroot}%{_localstatedir}/cache/gio-2.0 %{buildroot}%{_datadir}/app
touch %{buildroot}%{_localstatedir}/cache/gio-2.0/gnome-mimeapps.list
touch %{buildroot}%{_localstatedir}/cache/gio-2.0/xfce-mimeapps.list
touch %{buildroot}%{_localstatedir}/cache/gio-2.0/lxde-mimeapps.list
ln -s %{_localstatedir}/cache/gio-2.0/gnome-mimeapps.list %{buildroot}%{_datadir}/applications/mimeapps.list
ln -s %{_localstatedir}/cache/gio-2.0/gnome-mimeapps.list %{buildroot}%{_datadir}/applications/gnome-mimeapps.list
# gio-querymodules magic
%if "%{_lib}" == "lib64"
mv %{buildroot}%{_bindir}/gio-querymodules %{buildroot}%{_bindir}/gio-querymodules-64
@ -438,7 +438,7 @@ fi
%dir %{_datadir}/glib-2.0/
%dir %{_datadir}/glib-2.0/schemas/
%ghost %{_datadir}/glib-2.0/schemas/gschemas.compiled
%{_datadir}/applications/mimeapps.list
%{_datadir}/applications/gnome-mimeapps.list
%dir %{_localstatedir}/cache/gio-2.0
%ghost %{_localstatedir}/cache/gio-2.0/gnome-mimeapps.list
%ghost %{_localstatedir}/cache/gio-2.0/xfce-mimeapps.list