ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: [Comm] Re: TV soft (tvtime)
Date: Tue, 9 Sep 2003 14:59:01 +0400
Message-ID: <20030909145901.03911991.vsu@altlinux.ru> (raw)
In-Reply-To: <3F5D65BD.000002.19868@ariel.yandex.ru>

On Tue, 9 Sep 2003 09:31:41 +0400 (MSD)
"Alexey Novikov" <Shader@yandex.ru> wrote:

> Меня теперь мучает другой вопрос: как _правильно_ сделать, чтобы при выходе
> из X-вой сессии выполнялись некоторые скрипты. Конкретно при входе в X нужно
> запустить irexec, а при выходе его выгасить. Скрипты напмсать не проблема.
> Вопрос в том куда лучше поместить их вызов. К тому же они должны выполняться
> с правами пользователя вошедшего в X. У меня сейчас ALT MAster 2.0,
> kdm, kde2(ну нравиться он мне, к тому же не до конца еще изжиты старые привычки).
> Так вот, я вроде бы нашел что это можно сделать переписав /etc/X11/Xsession.
> Вопрос, а как это должно быть правильно?

Если в том kdm в выборе графической среды есть default - можно
написать ~/.Xclients (этот файл запускается при выборе default,
аналогично startkde, startgnome и т.п.), в котором прописать запуск
KDE и потом подчистку. Если нет, приходится ещё заниматься извратами в
~/.xprofile (хотя это уже относится к новому xinitrc - в Master 2.0 не
пройдёт):

function exec()
{
	if [ $# -ge 2 ]
	then
		if [ "$1" = "/usr/X11R6/bin/runwm" ] && [ "$2" = "Fvwm2" ]
		then
			builtin exec "$HOME/.Xclients"
		fi
	fi
	builtin exec "$@"
}


  parent reply	other threads:[~2003-09-09 10:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-08  5:45 [Comm] " Alexey Novikov
2003-09-08 12:27 ` Shrek
2003-09-09  5:31   ` Alexey Novikov
2003-09-09  6:08     ` Shrek
2003-09-09  8:58       ` Alexey Novikov
2003-09-09  9:46         ` Pyatnitskich Evgeniy
2003-09-09 10:53           ` Alexey Novikov
2003-09-09 10:59     ` Sergey Vlasov [this message]
2003-09-11 21:40   ` [Comm] " Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030909145901.03911991.vsu@altlinux.ru \
    --to=vsu@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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