Gentoo Archives: gentoo-user

From: Peter Gordon <admin@×××××××××××××××××.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 07:32:04
Message-Id: 41B2B958.3090800@ramshacklestudios.com
In Reply to: Re: [gentoo-user] Can a script tell if it's running under X? by Collins Richey
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Collins Richey wrote:
5 | For the normal non-root user case, this would be '/sbin/pidof X',
6 | unless you have monkeyed with the standard $PATH setup.
7
8 What do you mean? I have done nothing with my $PATH and let Portage handle it as
9 needed. On my system, /usr/bin/pidof is a symlink to /bin/pidof
10
11 /home/peter $ ls -al `which pidof`
12 lrwxrwxrwx 1 root root 10 Apr 9 2004 /usr/bin/pidof -> /bin/pidof
13
14
15
16 - --
17 () The ASCII Ribbon Campaign - against HTML Email,
18 /\ vCards, and proprietary formats.
19 - ---------------------------------------------------
20 Peter A. Gordon (codergeek42)
21 E-Mail: admin@×××××××××××××××××.com
22 GPG Public Key ID: 0x109DBECE
23 GPG Key Fingerprint (SHA1):
24 ~ E485 E2F7 11CE F9B2 E3D9 C95D 208F B732 109D BECE
25 Encrypted and/or Signed correspondence preffered.
26 - ---------------------------------------------------
27 -----BEGIN PGP SIGNATURE-----
28 Version: GnuPG v1.2.6 (GNU/Linux)
29 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
30
31 iD8DBQFBsrlWII+3MhCdvs4RAsHKAKDGy4ZUwr/X0902i48eFqnWpLCumQCgxNbB
32 M+kci9q/ljNFYacNLEK90eE=
33 =dnKK
34 -----END PGP SIGNATURE-----
35
36 --
37 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Can a script tell if it's running under X? Collins Richey <crichey@×××××.com>