From b262b544148ad75577faf1fccc38dc776864402d Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 12 Mar 2008 16:44:39 +0000 Subject: [PATCH] - Add a new subpackage to add ~/.xsessions and ~/.Xclients to session list --- xinit-compat.desktop | 4 ++++ xorg-x11-xinit.spec | 19 ++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 xinit-compat.desktop diff --git a/xinit-compat.desktop b/xinit-compat.desktop new file mode 100644 index 0000000..368cc4b --- /dev/null +++ b/xinit-compat.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Name=User script +Comment=This session runs ~/.xsession or ~/.Xclients if available +Exec=sh -c "exec ~/.xsession || exec ~/.Xclients || exec /etc/X11/xinit/Xclients" diff --git a/xorg-x11-xinit.spec b/xorg-x11-xinit.spec index 7e34d5e..9871ae8 100644 --- a/xorg-x11-xinit.spec +++ b/xorg-x11-xinit.spec @@ -3,7 +3,7 @@ Summary: X.Org X11 X Window System xinit startup scripts Name: xorg-x11-%{pkgname} Version: 1.0.7 -Release: 5%{?dist} +Release: 6%{?dist} License: MIT/X11 Group: User Interface/X URL: http://www.x.org @@ -19,6 +19,7 @@ Source14: Xresources # here instead of the xdm package. Source16: Xsession Source17: localuser.sh +Source18: xinit-compat.desktop Source100: ck-xinit-session.c Patch1: xinit-1.0.2-client-session.patch @@ -51,9 +52,16 @@ Obsoletes: xinitrc # startup. Conflicts: dbus < 1.1.4-3.fc9 +%package session +Summary: Display manager support for ~/.xsession and ~/.Xclients +Group: User Interface/X + %description X.Org X11 X Window System xinit startup scripts +%description session +Allows legacy ~/.xsession and ~/.Xclients files to be used from display managers + %prep %setup -q -n %{pkgname}-%{version} %patch1 -p1 -b .client-session @@ -77,6 +85,7 @@ rm -rf $RPM_BUILD_ROOT # Makefile.am and submit it in a bug report or check into CVS. %makeinstall XINITDIR=$RPM_BUILD_ROOT/etc/X11/xinit install -m755 ck-xinit-session $RPM_BUILD_ROOT/%{_bindir} +install -m644 -D $RPM_SOURCE_DIR/xinit-compat.desktop $RPM_BUILD_ROOT%{_datadir}/xsessions/xinit-compat.desktop # Install Red Hat custom xinitrc, etc. { @@ -117,7 +126,15 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/startx.1* %{_mandir}/man1/xinit.1* +%files session +%defattr(-, root, root) +%{_datadir}/xsessions/xinit-compat.desktop + %changelog +* Wed Mar 12 2008 Ray Strode 1.0.7-6 +- Add a new subpackage to add ~/.xsessions and ~/.Xclients + to session list + * Mon Feb 11 2008 Adam Jackson 1.0.7-5 - Xresources: s/don't/do not/, cpp is dumb. (#431704)