Gentoo Archives: gentoo-user

From: Collins Richey <crichey@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can a script tell if it's running under X?
Date: Sun, 05 Dec 2004 15:08:35
Message-Id: e00942e404120507082488c812@mail.gmail.com
In Reply to: Re: [gentoo-user] Can a script tell if it's running under X? by Peter Gordon
1 On Sat, 04 Dec 2004 23:31:36 -0800, Peter Gordon
2 <admin@×××××××××××××××××.com> wrote:
3 > -----BEGIN PGP SIGNED MESSAGE-----
4 > Hash: SHA1
5 >
6 > Collins Richey wrote:
7 > | For the normal non-root user case, this would be '/sbin/pidof X',
8 > | unless you have monkeyed with the standard $PATH setup.
9 >
10 > What do you mean? I have done nothing with my $PATH and let Portage handle it as
11 > needed. On my system, /usr/bin/pidof is a symlink to /bin/pidof
12 >
13 > /home/peter $ ls -al `which pidof`
14 > lrwxrwxrwx 1 root root 10 Apr 9 2004 /usr/bin/pidof -> /bin/pidof
15 >
16
17 Sorry for the confusion. I was running from a Fedora Core 3 system to
18 check out what many local users here are experiencing (nothing
19 expecially good, except that xscreensaver runs ok, whereas it fails on
20 my gentoo system). Apparently Red Hat (and some other systems) have
21 /sbin/pidof. 'which pidof' from a normal user finds nothing.
22
23 --
24 Collins
25
26 --
27 gentoo-user@g.o mailing list