From: rider <rider@linux.ru.net>
To: devel@linux.iplabs.ru
Subject: Re: [devel] apmd & xlockmore
Date: Fri, 23 Feb 2001 10:48:21 +0300
Message-ID: <3A9615C5.4AE1BEF8@linux.ru.net> (raw)
In-Reply-To: <20010223023122.A24141@LDV.fandra.org>
"Dmitry V. Levin" wrote:
> On Thu, Feb 22, 2001 at 09:30:21PM +0300, rider wrote:
> > Пакету apmd требуется xlockmore - зачем?
>
> Цитирую /etc/sysconfig/apm-scripts/apmscript:
>
> if [ "$LOCK_X" == yes -o "$LOCK_X" = 1 ]; then
> # Lock X, based on patch from Hannu Martikka
> # <Hannu.Martikka@nokia.com>
> w |tail +3 |awk '{print $1, $3}'|grep -v '-'|grep : | \
> sort -u | \
> while read line; do
> Usern=`echo $line |awk '{print $1}'`
> XDisp=`echo $line |awk '{print $2}'`
> if [ "$Usern" == root ]; then
> xlock -display "$XDisp" &>/dev/null &
> else
> su "$Usern" -c "xscreensaver-command -display $XDisp -lock || (xscreensaver -display $XDisp -no-splash &sleep 1; xscreensaver-command -display $XDisp -lock) || (xlock -display $XDisp &)" &>/dev/null
> fi
> done
> fi
>
> Можно, в принципе, сделать эту часть кода необязательной (if [ -x ... ]).
> Как скажете.
>
Сделайте пожалуйста необязательной.
Люди со старыми ноутбуками, на которых можно работать только в консоли (памяти например мало) будут испытывать неприятности.
Rgds
Anton
_______________________________________________
Devel mailing list
Devel@linux.iplabs.ru
http://www.logic.ru/mailman/listinfo/devel
prev parent reply other threads:[~2001-02-23 7:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-22 18:30 rider
2001-02-22 23:31 ` Dmitry V. Levin
2001-02-23 7:48 ` rider [this message]
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=3A9615C5.4AE1BEF8@linux.ru.net \
--to=rider@linux.ru.net \
--cc=devel@linux.iplabs.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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git