install a custom system xinitrc which tries to start the installed desktop manager
provide directory %{_sysconfdir}/X11/xinit/xinitrc.d [release 1.3.3-2mamba;Fri Jun 27 2014]
This commit is contained in:
parent
6df5683b4a
commit
fe160f62dc
27
xinit-xinitrc
Normal file
27
xinit-xinitrc
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# ~/.xinitrc
|
||||||
|
#
|
||||||
|
# Executed by startx (run your window manager from here)
|
||||||
|
|
||||||
|
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||||
|
for f in /etc/X11/xinit/xinitrc.d/*; do
|
||||||
|
[ -x "$f" ] && . "$f"
|
||||||
|
done
|
||||||
|
unset f
|
||||||
|
fi
|
||||||
|
|
||||||
|
# XFCE in questo caso è il default
|
||||||
|
case $1 in
|
||||||
|
gnome) exec gnome-session;;
|
||||||
|
kde) exec startkde;;
|
||||||
|
lxde) exec startlxde;;
|
||||||
|
xfce) exec startxfce4;;
|
||||||
|
*) for s in startkde gnome-session startlxde startxfce4; do
|
||||||
|
e=$(which $s)
|
||||||
|
if [ "$e" -a -x $e ]; then
|
||||||
|
exec $e
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done ;;
|
||||||
|
esac
|
13
xinit.spec
13
xinit.spec
@ -1,6 +1,6 @@
|
|||||||
Name: xinit
|
Name: xinit
|
||||||
Version: 1.3.3
|
Version: 1.3.3
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: xinit - X Window System initializer
|
Summary: xinit - X Window System initializer
|
||||||
Group: Graphical Desktop/Applications/Utilities
|
Group: Graphical Desktop/Applications/Utilities
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -8,6 +8,7 @@ Distribution: openmamba
|
|||||||
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
||||||
URL: http://xorg.freedesktop.org/
|
URL: http://xorg.freedesktop.org/
|
||||||
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
|
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
|
||||||
|
Source1: xinit-xinitrc
|
||||||
License: MIT
|
License: MIT
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -30,6 +31,9 @@ When this first client exits, xinit will kill the X server and then terminate.
|
|||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
|
install -d -m0755 %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d
|
||||||
|
install -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
@ -39,7 +43,8 @@ When this first client exits, xinit will kill the X server and then terminate.
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config %{_sysconfdir}/X11/xinit/xinitrc
|
%{_sysconfdir}/X11/xinit/xinitrc
|
||||||
|
%dir %{_sysconfdir}/X11/xinit/xinitrc.d
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_bindir}/startx
|
%{_bindir}/startx
|
||||||
%{_mandir}/man?/*
|
%{_mandir}/man?/*
|
||||||
@ -47,6 +52,10 @@ When this first client exits, xinit will kill the X server and then terminate.
|
|||||||
#ChangeLog README
|
#ChangeLog README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 27 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.3-2mamba
|
||||||
|
- install a custom system xinitrc which tries to start the installed desktop manager
|
||||||
|
- provide directory %{_sysconfdir}/X11/xinit/xinitrc.d
|
||||||
|
|
||||||
* Sat Sep 14 2013 Automatic Build System <autodist@mambasoft.it> 1.3.3-1mamba
|
* Sat Sep 14 2013 Automatic Build System <autodist@mambasoft.it> 1.3.3-1mamba
|
||||||
- automatic update by autodist
|
- automatic update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user