delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/27/08:44:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3DE4CC12.3040806@decodon.com>
Date: Wed, 27 Nov 2002 14:43:46 +0100
From: Frank-Michael Moser <moser AT decodon DOT com>
Organization: DECODON GmbH
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2) Gecko/20021126
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, cygwin-xfree AT cygwin DOT com
Subject: Re: How can I avoid using a DOS box??
References: <5 DOT 1 DOT 1 DOT 6 DOT 0 DOT 20021126195910 DOT 00a51d80 AT mail DOT fluidhosting DOT com>
In-Reply-To: <5.1.1.6.0.20021126195910.00a51d80@mail.fluidhosting.com>

I found that the "run" command which comes with Cygwin-XFree is quite 
useful for launching any shell script with a Windows link without a DOS 
box flashing. The problem is that it works only when $(cygpath -w /) is 
in your Windows PATH variable - otherwise it does not find cygwin1.dll. 
But a simple workaround for this (if you do not like Cygwin in the 
Windows Path) is to (hard-)link run in /bin:

ln /usr/X11R6/bin/run.exe /bin/run.exe

This i.e. is the way I start X with reading .xinitrc and .xserverrc from 
my HOME (what startxwin.bat does not):

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

You also can use this as yet another "RXVT here" approach:

echo Add Explorer extension \"RXVT here\"
regtool add /root/Directory/shell/0cmd-rxvt
regtool set /root/Directory/shell/0cmd-rxvt/ "RXVT here"
regtool add /root/Directory/shell/0cmd-rxvt/command
regtool set /root/Directory/shell/0cmd-rxvt/command/ "$(cygpath -w -a 
/)\\bin\\run.exe sh ~/bin/goto \"%1\""

where a "goto" script should do the rest.

I wonder whether
a)
run should find cygwin1.dll by reading the mounts from the registry or
b)
run should go in /bin by default

Is either a) or b) an option?

Frank-Michael


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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