- Add default-xsession which fvogt@suse.com added to
(now deprecated) lxqt-common in the past OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/lxqt-session?expand=0&rev=7
This commit is contained in:
parent
3b43613159
commit
4cd0997418
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 25 22:00:41 UTC 2017 - mvetter@suse.com
|
||||
|
||||
- Add default-xsession which fvogt@suse.com added to
|
||||
(now deprecated) lxqt-common in the past
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 23 11:37:19 UTC 2017 - mvetter@suse.com
|
||||
|
||||
|
@ -38,6 +38,8 @@ BuildRequires: pkgconfig(libudev)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(x11-xcb)
|
||||
BuildRequires: xdg-user-dirs
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: %{name}-lang
|
||||
Obsoletes: lxqt-common
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -61,6 +63,19 @@ make %{?_smp_mflags}
|
||||
%cmake_install
|
||||
%fdupes -s %{buildroot}/%{_datadir}
|
||||
|
||||
# for default-xsession
|
||||
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/lxqt.desktop 20
|
||||
|
||||
%postun
|
||||
[ -f %{_datadir}/xsessions/lxqt.desktop ] || %{_sbindir}/update-alternatives \
|
||||
--remove default-xsession.desktop %{_datadir}/xsessions/lxqt.desktop
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS LICENSE
|
||||
@ -84,5 +99,8 @@ make %{?_smp_mflags}
|
||||
%{_datadir}/kdm/sessions/lxqt.desktop
|
||||
%{_mandir}/man1/startlxqt.1%{ext_man}
|
||||
%{_datadir}/xsessions/lxqt.desktop
|
||||
# for default-xsession
|
||||
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop
|
||||
%{_datadir}/xsessions/*.desktop
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user