Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zkbd on OS X
- X-seq: zsh-users 16693
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: "Daniel Serodio (lists)" <daniel.lists@xxxxxxxxxxxxx>
- Subject: Re: zkbd on OS X
- Date: Tue, 3 Jan 2012 13:58:36 +0100
- Cc: zsh-workers+phil.pennock@xxxxxxxxxxxx, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4E+ofHB6IHJOcar6OAVY+3QtmI16Mmw2E9vmz3GnTgY=; b=cxGfLAM1QH4vqYCSXBUSCctZCdL7w7HGxcLxbCktu1WSKpbmZsSXQTnk0KNOdjg5VJ RPPR6yCJxZkC2K0y9Jtaycmf8osqS+J7DmS49WsHvWUBmKCmYpbVju73jzoIDRG7hAwG MN5bHwNeJ1s1F/ydD6TxW2ev0QWDKu9cG+JIE=
- In-reply-to: <4F02F74F.1050004@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>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4F01FE34.1020308@mandic.com.br> <20120103101643.GA1879@redoubt.spodhuis.org> <4F02F74F.1050004@mandic.com.br>
On 3 January 2012 13:40, Daniel Serodio (lists)
<daniel.lists@xxxxxxxxxxxxx> wrote:
> Phil Pennock wrote:
>>
>> 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------------------------------
>
> Works fine for me, but this fix has to me made not only where zkbd moves the
> temporary file but also when sourceing it in ~/.zshrc
>
> The corresponding lines in .zshrc look somewhat like a kludge.
>
> I was wondering the same thing as Mikael: why does zsh use $DISPLAY in the
> first place? IMHO, it doesn't make sense to have different keymapping in :1
> then in :0, and having to setup the keyboard when $DISPLAY changes.
It looks like Bart added this in
http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=commitdiff;h=bda53dc
but there is no motivation for the $DISPLAY change in the referenced
thread.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author