help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Daemon and client: Only open new frame if there isn't one already?


From: Peter Dyballa
Subject: Re: Daemon and client: Only open new frame if there isn't one already?
Date: Fri, 13 Mar 2009 10:35:12 +0100


Am 13.03.2009 um 00:44 schrieb Hugo Heden:

What I want is a command line option (or some hacky script ) to
automatically create a new frame only if there is no frame currently
open.

I think this is done via the DISPLAY environment variable in the shell where you launch GNU Emacs as daemon. Without $DISPLAY set GNU Emacs assumes that it will run as the "client" of some terminal emulation (inside of it). When it's set, then it's clear advise to launch as an X client. I presume that X11 is running when you log in. So DISPLAY is available and set.

--
Greetings

  Pete

Bake pizza not war!







reply via email to

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