[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Darwin support for lisp/battery.el.

From: Lute Kamstra
Subject: Re: Darwin support for lisp/battery.el.
Date: Mon, 04 Jul 2005 11:44:39 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Arne Jørgensen <address@hidden> writes:

> Lute Kamstra <address@hidden> writes:
> [...]
>> My patch tries to test whether pmset supports "-g ps" by looking at
>> the exit code.  Does "pmset -g ps" return a non-zero exit code on your
>> system?
> On my iBook G4 with Mac OS X 10.3 "pmset -g ps" has zero as exit code
> and no information as output.

Apparently that option was added in OS X 10.4.  Strange that pmset
doesn't signal an error with its exit code when it gets passed an
unknown option.  Maybe I can test for a working version of pmset in
some other way.  Could you eval this:

  (with-temp-file "~/pmset.txt"
    (ignore-errors (call-process "pmset" nil t nil "-g" "ps")))

and send me the "~/pmset.txt" file it creates as an attachment?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]