This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: On Bash options

Eric Blake wrote:

> Why execute bash, just to exec urxvt, which in turn executes another
> instance of bash? Why not just put urxvt as the shortcut target
> instead, using ~/.Xdefaults to control everything rather than needing > bash to set it up?


For the sake of completeness the '' (located in /usr/local/bin) is


export DISPLAY=:0

export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
export XNLSPATH=/usr/X11R6/lib/X11/locale

    # Cleanup from last run.
    rm -rf /tmp/.X11-unix

    XWin -multiwindow -clipboard -silent-dup-error +bs &

/usr/bin/checkX || start_XWin

exec /usr/bin/urxvt

and the link on the desktop is:

C:\cygwin\bin\run.exe bash --login -c

The problem I have tried to solve is:

How to start an urxvt console [1] from a link on desktop, starting also the X server if it is not running.

So what would be the best manner (including sourcing ~/.bash* so that the prompt, aliases etc. are OK)? What do you suggest?

Perhaps the best thing is to add the solution to the Cygwin FAQ/HowTo.

In any case your detailed explanation is better than an high level lesson!

Many thanks,

[1] More generally, the problem to solve is: How to start an X application (Emacs, XFig,...) and/or the X server (if it is not running) with a link on desktop.

Facesti come quei che va di notte,
che porta il lume dietro e se' non giova,
ma dopo se' fa le persone dotte.
                  DANTE, Purgatorio, xxii 67-69

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]