From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28784 invoked by alias); 13 Jan 2004 20:23:26 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Reply-To: cygwin-xfree@cygwin.com Received: (qmail 28768 invoked from network); 13 Jan 2004 20:23:25 -0000 Received: from unknown (HELO sys25.mail.msu.edu) (35.9.75.125) by sources.redhat.com with SMTP; 13 Jan 2004 20:23:25 -0000 Received: from office.ixn.com ([68.23.74.57] helo=msu.edu) by sys25.mail.msu.edu with asmtp (Exim 4.24 #37) (TLSv1:AES256-SHA:256) id 1AgV4N-00015y-Bb for cygwin-xfree@cygwin.com; Tue, 13 Jan 2004 15:23:23 -0500 Message-ID: <400453BA.3050402@msu.edu> Date: Tue, 13 Jan 2004 20:23:00 -0000 From: Harold L Hunt II User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com Subject: Re: Thanks and a question References: <1074021925.12310.7.camel@david.internal.NorcrossGroup.com> <1074024395.12868.5.camel@david.internal.NorcrossGroup.com> In-Reply-To: <1074024395.12868.5.camel@david.internal.NorcrossGroup.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus: None found by Clam AV X-SW-Source: 2004-01/txt/msg00328.txt.bz2 List-Id: Greg, Greg Freemyer wrote: > On Tue, 2004-01-13 at 14:45, Igor Pechtchanski wrote: > >>On Tue, 13 Jan 2004, Greg Freemyer wrote: >> >> >>>Harold, >>> >>>Your work on the clipboard with xdmcp capability is greatly >>>appreciated. >>> >>>>>From my minimal testing it works great. >>> >>>Now that the startup batch script can be simplified to a one liner, I >>>want to directly invoke "Xwin -query" from my desktop without first >>>launching a bash console. >>> >>>ie. I currently launch a bash script, then run my batch script. It >>>would be nice to instead just double click an icon on my desktop. >>> >>>I have setup a shortcut to XWin.exe on my desktop, but it is not >>>working. >>> >>>Currently I am getting an error about a missing DLL. Unfortunately I >>>need dlls from both /cygwin/bin and /cygwin/usr/X11R6/bin, so just >>>changing the startup directory is not quite enough. >>> >>>Is there a recommended way to get this to work? >>> >>>ie. Adding a shortcut (or a cygwin hardlink) to the cygcygipc-2.dll in >>>X11R6/bin >>> >>>Thanks Again >>>Greg >> >>Greg, >> >>Just add both c:/cygwin/bin and c:/cygwin/usr/X11R6/bin to the end of your >>Windows PATH variable. >> Igor > > > Thanks Igor, > > It worked great, and Harold this just seems cleaner than the approach > you gave. This way the windows shortcut is pointing directly at > XWin.exe and there is no excess overhead associated with starting a bash > shell up. Since when did batch files require bash shells? Did you notice the .bat extension? Those are run by Windows and let me tell you, ain't no way you are going to avoid the overhead of running Windows :) > If anyone cares, the PATH variable for Win2K is set by > right clicking 'my computer' > properties > advanced tab > environment variables > system variables Or press [Windows Key] + PrinttScreen and resume at the Advanced tab step. The reason I will never advise users to set their PATHs like this is because we will inevitably have users that install once to d:\cygwin, then remove that installation and reinstall later to c:\cygwin, but forget that they have done this. They will then insist that they setup the PATH as described (without double-checking to verify, of course), and will persist at complaining about how this doesn't work. Making a shortcut to the batch file sets the path based on the location of the batch file, which cannot be screwed up; if a user had a dead shortcut they would get a warning about not being able to find the target of the shortcut instead of some vague message about a DLL not being found. There is a method to this madness... Harold