xinit fix

This commit is contained in:
sulincix committed 2023-02-05 20:29:40 +00:00
1 parent 4c4392024a
commit e708abaeed
7 files changed
+160 -7

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
#!/bin/sh
#
# X session wrapper
echo "Running X session wrapper"
# Load profile
for file in /etc/profile "$HOME/.profile" /etc/xprofile "$HOME/.xprofile"; do
if [ -f "$file" ]; then
echo "Loading profile from $file";
. "$file"
fi
done
# Load resources
for file in /etc/X11/Xresources "$HOME/.Xresources"; do
if [ -f "$file" ]; then
echo "Loading resource: $file"
xrdb -nocpp -merge "$file"
fi
done
# Load keymaps
use_xkbmap=false
for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do
if [ -f "$file" ]; then
echo "Loading keymap: $file"
setxkbmap `cat "$file"` && use_xkbmap=true
fi
done
# Load xmodmap if not using XKB
if ! $use_xkbmap; then
for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do
if [ -f "$file" ]; then
echo "Loading modmap: $file"
xmodmap "$file"
fi
done
fi
# Run all system xinitrc shell scripts.
xinitdir="/etc/X11/xinit/xinitrc.d"
if [ -d "$xinitdir" ]; then
for script in $xinitdir/*; do
echo "Loading xinit script $script"
if [ -x "$script" -a ! -d "$script" ]; then
. "$script"
fi
done
fi
echo "X session wrapper complete, running session $@"
exec $@
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
if [ -f /var/lib/ymp/sysconf/xinit/postinstall.done ] ; then
mkdir -p /etc/X11/xinit/xinitrc.d /etc/skel/
touch /var/lib/ymp/sysconf/xinit/postinstall.done
fi
+51
View File
@@ -0,0 +1,51 @@
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
xinitdir=/etc/X11
sysresources=$xinitdir/Xresources
sysmodmap=$xinitdir/Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# First try ~/.xinitrc
if [ -f "$HOME/.xinitrc" ]; then
XINITRC="$HOME/.xinitrc"
if [ -x $XINITRC ]; then
# if the x bit is set on .xinitrc
# it means the xinitrc is not a
# shell script but something else
exec $XINITRC "$@"
else
exec /bin/sh "$HOME/.xinitrc" "$@"
fi
fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?* ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
for p in startxfce4 startfluxbox xfce4-terminal \
mrxvt urxvt st xterm; do
command -v "$p" >/dev/null && exec "$p"
done
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/X -nolisten tcp "$@"
+20 -6
View File
@@ -7,10 +7,19 @@ description='X Window System initializer xinit'
email='bayramk@gmail.com'
maintainer='bk'
license=('GPLv3')
source=("https://gitlab.freedesktop.org/xorg/app/xinit/-/archive/xinit-$version/xinit-xinit-1.4.2.tar.gz")
source=("https://gitlab.freedesktop.org/xorg/app/xinit/-/archive/xinit-$version/xinit-xinit-1.4.2.tar.gz"
"xinitrc"
"xserverrc"
"Xsession"
"xinit.sysconf"
)
depends=(xorg-macros xorgproto libX11)
makedepends=()
md5sums=('0855364c1c869679300d55e9dd57e2aa')
md5sums=('0855364c1c869679300d55e9dd57e2aa'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
group=(x11.apps)
uses=()
arch=('x86_64')
@@ -18,16 +27,21 @@ arch=('x86_64')
cd $name-$name-$version
setup(){
./autogen.sh
autoreconf -vfi
./configure --prefix=/usr \
--libdir=/usr/lib64/
--libdir=/usr/lib64/ \
-sysconfdir=/etc
}
build(){
make -j`nproc`
make $jobs
}
package(){
make install -j`nproc`
make install $jobs
install -m755 -D ../xinitrc "$DESTDIR"/etc/X11/xinit/xinitrc
install -m755 -D ../Xsession "$DESTDIR"/etc/X11/xinit/Xsession
install -m755 ../xserverrc "$DESTDIR"/etc/X11/xinit/xserverrc
install -m755 -D ../xinit.sysconf "$DESTDIR"/etc/sysconf.d/xinit
}