gnome-terminal desktop shortcut

Brian Inglis Brian.Inglis@SystematicSw.ab.ca
Mon Sep 2 14:43:00 GMT 2019


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



More information about the Cygwin mailing list