* [devel] apmd & xlockmore
@ 2001-02-22 18:30 rider
2001-02-22 23:31 ` Dmitry V. Levin
0 siblings, 1 reply; 3+ messages in thread
From: rider @ 2001-02-22 18:30 UTC (permalink / raw)
To: devel
Пакету apmd требуется xlockmore - зачем?
Rgds
Anton
_______________________________________________
Devel mailing list
Devel@linux.iplabs.ru
http://www.logic.ru/mailman/listinfo/devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] apmd & xlockmore
2001-02-22 18:30 [devel] apmd & xlockmore rider
@ 2001-02-22 23:31 ` Dmitry V. Levin
2001-02-23 7:48 ` rider
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2001-02-22 23:31 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1274 bytes --]
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 ... ]).
Как скажете.
Regards,
Dmitry
+-------------------------------------------------------------------------+
Dmitry V. Levin mailto://ldv@fandra.org
Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html
IPLabs Linux Team http://linux.iplabs.ru
Fandra Project http://www.fandra.org
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] apmd & xlockmore
2001-02-22 23:31 ` Dmitry V. Levin
@ 2001-02-23 7:48 ` rider
0 siblings, 0 replies; 3+ messages in thread
From: rider @ 2001-02-23 7:48 UTC (permalink / raw)
To: devel
"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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-02-23 7:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-22 18:30 [devel] apmd & xlockmore rider
2001-02-22 23:31 ` Dmitry V. Levin
2001-02-23 7:48 ` rider
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