delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/02/10:44:42

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:reply-to:to:references:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=jOI9+3rkFFn3BrJa
Kp8LU/fQ5r1BP2SfO8OQd6bUVp5pldtHqeZV+f+kLak+ee6FDPGMs2jAznEpDNnw
EWpF9csvM/YVC3g0rIQH3/CiR5QSyd6/HCC6gMsfR2yD/qMDovwHi8foG/4WzIaC
gIBZze8K5ek5Ik3ZGwELgNfX4Ns=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:reply-to:to:references:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=+1an4M1IGtnXNFGMAj1G/U
k7vXo=; b=Dr2spqwRTtlo9QoSkO7rfjMoM8rxbhgdQ7nM23HQsZ9Mx/icBNlgAO
9XT2d3Wcsdue9G7Wr7od9mid7j6zi1twOjgsVo86PAwf9/9f9RSf8WJ0kbAAdlAR
eBsf0dAuwAHNcnerLAk48BRlcPj0kRA9FmTWpOYOOcb0/j3mUiXho=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: Re: gnome-terminal desktop shortcut
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
To: cygwin AT cygwin DOT com
References: <qki8f7$4idd$1 AT blaine DOT gmane DOT org>
Openpgp: preference=signencrypt
Message-ID: <c687f40b-346f-652f-12fa-768638cd114a@SystematicSw.ab.ca>
Date: Mon, 2 Sep 2019 08:43:46 -0600
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: <qki8f7$4idd$1@blaine.gmane.org>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019