Re: Thanks and a question
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
Re: Thanks and a question
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. If anyone cares, the PATH variable for Win2K is set by right clicking 'my computer' properties advanced tab environment variables system variables Greg
Re: Thanks and a question
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 -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton
Re: Thanks and a question
Greg, Just edit startxdmcp.bat (or copy startwin.bat, comment out the line that starts xterm, and remove the -multiwindow parameter) and name it "foohost.bat". Leave it in /usr/X11R6/bin. Then, create a shortcut to that batch file with Windows Explorer (note: you can then change the icon for the shortcut and point it to the icon in XWin.exe). Then, copy and paste that shortcut on your desktop. Everything will work fine. This is the method that I always use. Harold 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
Thanks and a question
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 Freemyer