Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zkbd on OS X
- X-seq: zsh-users 16690
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: "Daniel Serodio (lists)" <daniel.lists@xxxxxxxxxxxxx>
- Subject: Re: zkbd on OS X
- Date: Tue, 3 Jan 2012 05:16:44 -0500
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201107; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=agutusy0g7cFTfptA9xbQb+ukT0YSDgyCJgB8KS/niA=; b=PDAStf5uF/8HU5+KxUR8e8HMXMXYJPNFFUVlnZ0Evk4eKyh6xXAYpwFJwNCmId7SZSEOQpAYC3cmq1/H/vw4vhPiBFWvJulYhI1IYpcNJ1r3VRrRXQqIspQcrdiSB0Fwie9Ft5pbovGDyqCdaVRhG6KlhUw8ZTBHRXlAfAci+oA=;
- In-reply-to: <4F01FE34.1020308@mandic.com.br>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: "Daniel Serodio (lists)" <daniel.lists@xxxxxxxxxxxxx>, zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4F01FE34.1020308@mandic.com.br>
On 2012-01-02 at 16:57 -0200, Daniel Serodio (lists) wrote:
> Since 4.3.5 or so[1], zkbd uses ${DISPLAY:-$VENDOR-$OSTYPE} instead of
> Has anyone had this problem before? Am I doing something wrong?
You're not doing anything wrong; it was an Xorg/XFree86 assumption about
the value of $DISPLAY, ":0", ":0.0", "hostname:0" or the like.
("hostname:displaynumber.screennumber"). I think that this might be an
X11 requirement ...
On MacOS, it's a Unix-domain socket, used by launchd to dynamically
start up the X11 server when a client opens the socket, and hand off to
the running server. From an X point of view, this should still have
been exposed as ":0" and the local transport could have been chosen
behind the scenes to be via a Unix-domain socket which triggers the
launchd behaviour. Alas, Mac's are gratuitously different here.
How about:
----------------------------8< cut here >8------------------------------
if [[ -z "$DISPLAY" || $DISPLAY == */* ]]; then
termID="$VENDOR-$OSTYPE"
else
termID="$DISPLAY"
fi
----------------------------8< cut here >8------------------------------
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author