Accepting request 527529 from GNOME:Next
Register gnome as u-a default session OBS-URL: https://build.opensuse.org/request/show/527529 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-session?expand=0&rev=276
This commit is contained in:
parent
2694381feb
commit
346b938a8c
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 20 12:12:26 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Register GNOME with u-a handler for default.desktop
|
||||||
|
implementation, which obsoletes the change in
|
||||||
|
/etc/sysconfig/windowmanager to pick the 'default window manager'
|
||||||
|
(boo#1039756).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 15 03:53:53 UTC 2017 - xwang@suse.com
|
Fri Sep 15 03:53:53 UTC 2017 - xwang@suse.com
|
||||||
|
|
||||||
|
@ -31,9 +31,6 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: tcpd-devel
|
BuildRequires: tcpd-devel
|
||||||
%if !0%{?is_opensuse}
|
|
||||||
BuildRequires: translation-update-upstream
|
|
||||||
%endif
|
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
BuildRequires: xsltproc
|
BuildRequires: xsltproc
|
||||||
BuildRequires: pkgconfig(dbus-glib-1) >= 0.76
|
BuildRequires: pkgconfig(dbus-glib-1) >= 0.76
|
||||||
@ -59,6 +56,9 @@ BuildRequires: pkgconfig(xtst)
|
|||||||
Requires: %{name}-core = %{version}
|
Requires: %{name}-core = %{version}
|
||||||
Requires: %{name}-default-session = %{version}
|
Requires: %{name}-default-session = %{version}
|
||||||
Recommends: %{name}-lang
|
Recommends: %{name}-lang
|
||||||
|
%if !0%{?is_opensuse}
|
||||||
|
BuildRequires: translation-update-upstream
|
||||||
|
%endif
|
||||||
# gnome-session-wayland not recommended by default yet: causes various issues:
|
# gnome-session-wayland not recommended by default yet: causes various issues:
|
||||||
# qemu's default video mode is 'cirrus', which stays black with GNOME Wayland
|
# qemu's default video mode is 'cirrus', which stays black with GNOME Wayland
|
||||||
# YaST cannot be started without additional tricks
|
# YaST cannot be started without additional tricks
|
||||||
@ -137,11 +137,26 @@ install -m644 %{SOURCE3} %{buildroot}%{_datadir}/wayland-sessions/sle-classic.de
|
|||||||
rm -fr %{buildroot}%{_datadir}/wayland-sessions
|
rm -fr %{buildroot}%{_datadir}/wayland-sessions
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Prepare for 'default.desktop' being update-alternative handled, boo#1039756
|
||||||
|
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
|
||||||
|
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
|
||||||
|
default-xsession.desktop %{_datadir}/xsessions/gnome.desktop 25
|
||||||
|
|
||||||
|
%postun
|
||||||
|
[ -f %{_datadir}/xsessions/gnome.desktop ] || %{_sbindir}/update-alternatives \
|
||||||
|
--remove default-xsession.desktop %{_datadir}/xsessions/gnome.desktop
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr (-, root, root)
|
%defattr (-, root, root)
|
||||||
%{_bindir}/gnome
|
%{_bindir}/gnome
|
||||||
|
%{_datadir}/xsessions/default.desktop
|
||||||
%{_datadir}/xsessions/gnome.desktop
|
%{_datadir}/xsessions/gnome.desktop
|
||||||
%{_datadir}/xsessions/gnome-xorg.desktop
|
%{_datadir}/xsessions/gnome-xorg.desktop
|
||||||
|
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
|
||||||
|
|
||||||
%files default-session
|
%files default-session
|
||||||
%defattr (-, root, root)
|
%defattr (-, root, root)
|
||||||
|
Loading…
Reference in New Issue
Block a user