delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/22/22:18:36

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: <00f201c2f0eb$29f79f30$086a86d9@ellixia>
From: "Elfyn McBratney" <elfyn AT exposure DOT org DOT uk>
To: "cygwin" <cygwin AT cygwin DOT com>, "Kodaj Bence" <kodaj AT freemail DOT hu>
References: <freemail DOT 20030222161027 DOT 97148 AT fm8 DOT freemail DOT hu>
Subject: Re: Starting .exe: DOS prompt OK, double-click not
Date: Sun, 23 Mar 2003 03:20:32 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300

> When OurApp.exe starts up, it invokes Tcl/Tk's "wish" shell, and passes
> OurScript.tcl to it for interpretation. (The actual Tcl/Tk installation on
my
> machine is ActiveTcl 8.4., but that's not really important.)

Well that depends. How does your application access the file
"OurScript.tcl"? What I mean is what path do you use? Is it a Cygwin (posix)
path or a Win32 path? What I'm thinking is that you are giving a windows
version of wish a posix path, which it will not be able to understand.

> Now, when I double-click on OurApp.exe in Windows Explorer, I get the
> following error message from wish:
>
> Error in startup script
> couldn't read file "/cygdrive/c/OurAppFolder/OurScript.tcl": no such file
> or directory
>
> But when I open a DOS prompt in OurAppFolder and start OurApp from
> there, then everything's fine. (Notice that it's a plain DOS prompt, not
> Cygwin's bash.)
>
> So my question is: what's the reason for this behavior? To me it seems
> that the C:\OurAppFolder\OurScript.tcl path gets transformed into its
> Cygwin equivalent, and wish doesn't understand the transformed path.
> But why is everything OK from the DOS prompt? And is there a way to
> make the double-click work as expected?

Because wish is a part of the ActiveTCL distribution, and thus a Win32
executable, that won't know what a Cygwin path is or where it points to.


Regards,

Elfyn McBratney
elfyn AT exposure DOT org DOT uk
www.exposure.org.uk



--
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