ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] /etc/X11/xinit.d/xkb
@ 2005-08-08  5:59 Alexey Rusakov
  0 siblings, 0 replies; only message in thread
From: Alexey Rusakov @ 2005-08-08  5:59 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 1228 bytes --]

Всем доброго времени суток.

Странновато, что до меня никто не наткнулся (или не написал?), ну да ладно.

Попробовал я наконец-таки пересесть на 2.6.12, соответственно, пришлось 
перезапустить машину. И обнаружил я, что при запуске из gdm X-сессия 
немедленно дохнет, без каких-либо явных признаков в .xsession-errors. 
Копание в районе скрипта Xsession привело к источнику: им оказался 
указанный в сабже файл. Этот файл сорсится(!) в Xsession; между тем, в 
нём находится аж две инструкции exit 0, которые, как я понимаю, приводят 
к немедленному выходу, но - из Xsession. Замена exit 0 на глобальный (на 
весь xinit.d/xkb) if спасла положение. Прикрепляю исправленный файл и 
жду пока поднимется багзилла.

-- 
  Alexey "Ktirf" Rusakov

[-- Attachment #2: xkb --]
[-- Type: text/plain, Size: 718 bytes --]

#!/bin/sh
#
# This script sets the keyboard layout for user session using the X Keyboard Extension
#
# Examples $HOME/.xkb:
# LAYOUT="us,ru"
# MODEL="thinkpad"
# VARIANT=",winkeys"
# OPTION="grp:caps_toggle,grp_led:scroll"
#
# Author:	Valery V. Inozemtsev <shrek@altlinux.org>
#

SETXKBMAP=/usr/X11R6/bin/setxkbmap
if [ -x "$SETXKBMAP" -a -r $HOME/.xkb ]; then

# Reset parameters.
LAYOUT=
MODEL=
VARIANT=
OPTION=
PARAMS=

. $HOME/.xkb

[ -z "$LAYOUT" ] || PARAMS="-layout '$LAYOUT'"
[ -z "$MODEL" ] || PARAMS="$PARAMS -model '$MODEL'"
[ -z "$VARIANT" ] || PARAMS="$PARAMS -variant '$VARIANT'"
[ -z "$OPTION" ] || PARAMS="$PARAMS -option -option '$OPTION'"

[ -z "$PARAMS" ] || eval $SETXKBMAP $PARAMS 2>/dev/null

fi

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-08  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-08  5:59 [sisyphus] /etc/X11/xinit.d/xkb Alexey Rusakov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git