From: John G. <jge...@ny...> - 2001-04-23 16:28:09
|
My version of the launcher is using native windows services to do file expansion on both conventional Windows and UNC paths. I've tested it successfully on both, although for UNC I created a share on the host computer; I haven't tried it over a "real" network. After I complete testing of the context menu handler and do some cleanup, I'll post the source and exectutable. It's implemented as a COM object with a public launcher interface, so it can be used inside wscript or from facilities like the Perl OLE32 package. I haven't written a command line client yet, but that would be trivial, at least under native Windows. The Cygwin API call I think you're looking for can be found here: http://sources.redhat.com/cygwin/cygwin-api/func-cygwin-conv-to-full-win32-p ath.html It would be good for the command line client to have an option to flag use of POSIX file paths. John > -----Original Message----- > From: jed...@li... > [mailto:jed...@li...]On Behalf Of Dirk > Moebius > Sent: Monday, April 23, 2001 11:30 AM > To: jed...@li... > Subject: Re: [ jEdit-users ] Launching jedit from cygwin. > > > > On Mon, 23 Apr 2001, Tom Locke wrote: > > This does raise an interetsing point about using Cygwin, though. Does > > Cygwin store its root in a system envrionment variable or someplace a > > program outside of Cygwin could access it? If not, we could > require users > > of Cygwin to setup a CYGWIN_ROOT environment variable and then specially > > interpret paths starting with a "/" so that they go to > > %CYWIN_ROOT%\path\to\file > > > > Thoughts? > > It's not that easy. The path could start with "/", but it could > be a Cygwin > mount, e.g. /d/WINDOWS/file.txt. Unless you link the cygwin.dll to > jEditOpener and use some of the Cygwin functions, there will be > no easy way to map > Cygwin paths to Windoze paths. No, I don't know which functions. > > That's a real problem here: we want to use Cygwin bash's shell expansion, > but cannot use it with absolute paths. Looks like either > jEditOpener has to do > the shell expansion itself, or we forget that feature. > > Dirk. > > > -- > GMX - Die Kommunikationsplattform im Internet. > http://www.gmx.net > > > -- > ----------------------------------------------- > jEdit Users' List > jEd...@li... > http://lists.sourceforge.net/lists/listinfo/jedit-users |