From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52046 invoked by alias); 2 Sep 2019 14:43:51 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 52031 invoked by uid 89); 2 Sep 2019 14:43:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=DISPLAY, weeks, disappears, H*R:D*ca X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Sep 2019 14:43:49 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id 4nYYigNkjUIS24nYZiAmIZ; Mon, 02 Sep 2019 08:43:47 -0600 From: Brian Inglis Subject: Re: gnome-terminal desktop shortcut Reply-To: Brian.Inglis@SystematicSw.ab.ca To: cygwin@cygwin.com References: Openpgp: preference=signencrypt Message-ID: Date: Mon, 02 Sep 2019 14:43:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00009.txt.bz2 On 2019-09-01 23:14, Amadeus WM via cygwin wrote: > I installed cygwin 3.0.7 about 2 weeks ago and everything seems fine. > I start the X server from the command line with startxwin. > > What I'd like to do is to set up a desktop shortcut for gnome-terminal. > I have defined the DISPLAY=":0.0" option in windows, and from mintty I can start gnome-terminal > with no problems. I tried to set up a windows shortcut with this command: > > C:\cygwin64\bin\gnome-terminal.exe --display=":0.0" -- C:\cygwin64\bin\bash --login -i > > I also tried different variations on this, e.g. do not tell it to run bash at all, > run bash, but specify the POSIX path, etc. > > The result is always the same: a window pops up for a fraction of a second and disappears. > > What do I need to do to get the gnome-terminal shortcut working? Like the mintty > (cygwin-terminal) is working. Use X apps menu Accessories/Menu Editor to add gnome-terminal to the System and/or TerminalEmulator sub-menus. AND/OR Run gnome-terminal just before the launch of xwin-xdg-menu near the bottom of ~/.startxwinrc: $ tail ~/.startxwinrc if [ -x /usr/bin/fbxkb -a "x$IMSETTINGS_MODULE" != "xIBus" ] ; then /usr/bin/fbxkb & fi # Gnome terminal if [ -x /usr/bin/gnome-terminal ] ; then /usr/bin/gnome-terminal -geometry 120x60+210+120 - & fi exec /usr/bin/xwin-xdg-menu fi -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple