From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19888 invoked by alias); 3 Jan 2012 10:33:24 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16690 Received: (qmail 2383 invoked from network); 3 Jan 2012 10:33:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at spodhuis.org does not designate permitted sender hosts) 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=; Date: Tue, 3 Jan 2012 05:16:44 -0500 From: Phil Pennock To: "Daniel Serodio (lists)" Cc: zsh-users@zsh.org Subject: Re: zkbd on OS X Message-ID: <20120103101643.GA1879@redoubt.spodhuis.org> Mail-Followup-To: "Daniel Serodio (lists)" , zsh-users@zsh.org References: <4F01FE34.1020308@mandic.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <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