From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10211 invoked by alias); 31 May 2012 17:08:58 -0000 Received: (qmail 10183 invoked by uid 22791); 31 May 2012 17:08:56 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-yw0-f43.google.com (HELO mail-yw0-f43.google.com) (209.85.213.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 31 May 2012 17:08:44 +0000 Received: by yhkk6 with SMTP id k6so962290yhk.2 for ; Thu, 31 May 2012 10:08:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.14.169 with SMTP id q9mr20205375oec.19.1338484123257; Thu, 31 May 2012 10:08:43 -0700 (PDT) Received: by 10.182.209.69 with HTTP; Thu, 31 May 2012 10:08:43 -0700 (PDT) Date: Thu, 31 May 2012 17:08:00 -0000 Message-ID: Subject: Can display remote X window from bash, but not from DOS window From: David Karr To: cygwin-xfree@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2012-05/txt/msg00053.txt.bz2 I have a Win7 laptop with Cygwin and a Ubuntu desktop box. I can ssh from the laptop with shared keys and X11 forwarding, so that I can run a simple command line in a Bash shell on the Win7 box and it will open up the window for the remote process on my Win7 box. What I'm having trouble with is setting up a Win7 desktop shortcut that will do this. I have a simple Bash script called "dt" (stands for "desktop") that calls "ssh" and passes the scripts command line parameters to ssh. As I said, this works fine when I call it from a Bash shell window. I wrote a DOS batch script that does something like this: c:\cygwin\bin\bash -cl "=pathprefix=/dt =remote command line=" This bombs with numerous errors. This is the first one: (STS:30397): GLib-GObject-WARNING **: invalid (NULL) pointer instance What's the correct way to do this? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/