Репозитории ALT
S: | 45.0.1-alt2 |
5.1: | 2.26.1-alt5.M51.2 |
4.1: | 2.20.7-alt1.M41.1 |
4.0: | 2.18.4-alt1 |
3.0: | 2.6.0.9-alt1 |
Другие репозитории
Upstream: | 2.20.4 |
Группа :: Графические оболочки/GNOME
Пакет: gdm
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: gdm-40.beta-alt-Init.patch
Скачать
Скачать
--- gdm-40.beta/data/Init.in.Init 2021-02-26 02:43:31.348588302 +0300
+++ gdm-40.beta/data/Init.in 2021-02-26 02:39:07.391571312 +0300
@@ -1,97 +1,14 @@
#!/bin/sh
-# Stolen from the debian kdm setup, aren't I sneaky
-# Plus a lot of fun stuff added
-# -George
-
PATH="@X_PATH@:$PATH"
-OLD_IFS=$IFS
-gdmwhich () {
- COMMAND="$1"
- OUTPUT=
- IFS=:
- for dir in $PATH
- do
- if test -x "$dir/$COMMAND" ; then
- if test "x$OUTPUT" = "x" ; then
- OUTPUT="$dir/$COMMAND"
- fi
- fi
- done
- IFS=$OLD_IFS
- echo "$OUTPUT"
+RunIfExecutable()
+{
+ [ ! -x "$1" ] || "$1"
}
-if [ -f /etc/X11/Xresources ]; then
- sysresources=/etc/X11/Xresources
-else
- sysresources=/usr/etc/X11/Xresources
-fi
-
-# merge in defaults
-if [ -f "$sysresources" ]; then
- xrdb -nocpp -merge "$sysresources"
-fi
-
-if [ -f /etc/X11/Xmodmap ]; then
- sysmodmap=/etc/X11/Xmodmap
-else
- sysmodmap=/usr/etc/X11/Xmodmap
-fi
-
-XMODMAP=`gdmwhich xmodmap`
-if [ "x$XMODMAP" != "x" ] ; then
- if [ "x$GDM_PARENT_DISPLAY" = "x" ]; then
- if [ -f $sysmodmap ]; then
- $XMODMAP $sysmodmap
- fi
- else
- ( DISPLAY=$GDM_PARENT_DISPLAY XAUTHORITY=$GDM_PARENT_XAUTHORITY $XMODMAP -pke ) | $XMODMAP -
- fi
-
- #
- # Switch Sun's Alt and Meta mod mappings
- #
-
- UNAME=`gdmwhich uname`
- PROCESSOR=`$UNAME -p`
- if [ "x$PROCESSOR" = "xsparc" ]; then
- if $XMODMAP | grep mod4 | grep Alt > /dev/null 2>/dev/null
- then
- $XMODMAP -e "clear Mod1" \
- -e "clear Mod4" \
- -e "add Mod1 = Alt_L" \
- -e "add Mod1 = Alt_R" \
- -e "add Mod4 = Meta_L" \
- -e "add Mod4 = Meta_R"
- fi
- fi
-fi
-
-SETXKBMAP=`gdmwhich setxkbmap`
-if [ "x$SETXKBMAP" != "x" ] ; then
- # FIXME: is this all right? Is this completely on crack?
- # What this does is move the xkb configuration from the GDM_PARENT_DISPLAY
- # FIXME: This should be done in code. Or there must be an easier way ...
- if [ -n "$GDM_PARENT_DISPLAY" ]; then
- XKBSETUP=`( DISPLAY=$GDM_PARENT_DISPLAY XAUTHORITY=$GDM_PARENT_XAUTHORITY $SETXKBMAP -v )`
- if [ -n "$XKBSETUP" ]; then
- XKBKEYMAP=`echo "$XKBSETUP" | grep '^keymap' | awk '{ print $2 }'`
- XKBTYPES=`echo "$XKBSETUP" | grep '^types' | awk '{ print $2 }'`
- XKBCOMPAT=`echo "$XKBSETUP" | grep '^compat' | awk '{ print $2 }'`
- XKBSYMBOLS=`echo "$XKBSETUP" | grep '^symbols' | awk '{ print $2 }'`
- XKBGEOMETRY=`echo "$XKBSETUP" | grep '^geometry' | awk '{ print $2 }'`
- if [ -n "$XKBKEYMAP" ]; then
- $SETXKBMAP -keymap "$XKBKEYMAP"
- elif [ -n "$XKBTYPES" -a -n "$XKBCOMPAT" -a -n "$XKBSYMBOLS" -a -n "$XKBGEOMETRY" ]; then
- $SETXKBMAP -types "$XKBTYPES" -compat "$XKBCOMPAT" -symbols "$XKBSYMBOLS" -geometry "$XKBGEOMETRY"
- elif [ -n "$XKBTYPES" -a -n "$XKBCOMPAT" -a -n "$XKBSYMBOLS" ]; then
- $SETXKBMAP -types "$XKBTYPES" -compat "$XKBCOMPAT" -symbols "$XKBSYMBOLS"
- elif [ -n "$XKBSYMBOLS" ]; then
- $SETXKBMAP -symbols "$XKBSYMBOLS"
- fi
- fi
- fi
-fi
+sysresources=/etc/X11/Xresources
+[ ! -f "$sysresources" ] || xrdb -merge $sysresources
-exit 0
+RunIfExecutable /etc/X11/xinit/xrandrrc
+RunIfExecutable /etc/X11/xinit/fixkeyboard
+RunIfExecutable /etc/X11/xinit/XIM