Re: Starting Xwin - Shell Window Remains
brett lee wrote: Hi, I'm able to start and use Xwin. However, after the X server is up, I need to manually close the cygwin bash window (the one that started the X server). I've checked the usual places, but have not come up with a solution. This is probably more of a shell scripting question, but since the solution I'm looking for is a windows executable (C:\cygwin\startxwin.bat) that I can drop into my StartUp folder to automatically start Xwin when I log in, here I am. Here's where I'm at thus far: 1. C:\cygwin\startxwin.bat exists, and has the following contents: @echo off c: chdir c:\cygwin\bin bash --login -i /usr/local/bin/myxwin You might want to try this: bash --login -c /usr/local/bin/myxwin ^^ -i is for an interactive shell Regards, Doug -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Is this SPAM!?
How is it that is spam could get through cygwin-xfree-owner?? #:- (Grumpingly-Annoyedticon) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of HALIFAX INTERNATIONAL Sent: Mon, August 15, 2005 9:43 AM To: cygwin-xfree@cygwin.com Subject: HELLO. HALIFAX INTERNATIONAL IMPORT AND EXPORT COMPANY I am Wilson Peters, we are a group of business men who deal on raw materials import and export into America and Canada. We need representatives who can help us establish a medium of getting to our customers in America/Canada as well as making through you to us. If you are interested in transacting business with us we will be very glad. Please contact our procurement officer, Mr. William Smith for more information thru: [EMAIL PROTECTED],[EMAIL PROTECTED] Subject to your satisfaction you will be given the opportunity to negotiate your mode of which we will pay for your services as our representative in America/Canada. Please if you are interested forward to us your Full Names,Phone/Fax numbers and your Full contact addresses to our Procurement officer, Mr.William Smith with the email address above. Regards, Wilson Peters President, HALIFAX INTERNATIONAL IMPORT AND EXPORT COMPANY, Goods for Import/Export Freight Fwdg. Svcs. Units 5A 5B, Broadgate Business Park, Turnpike Lane, Beeston, Nottingham, NG7 5RX, UNITED KINGDOM. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Is this SPAM!?
On Aug 15 11:19, Soong, SylokeJ wrote: How is it that is spam could get through cygwin-xfree-owner?? #:- (Grumpingly-Annoyedticon) And you're helping it to spread by FULL QUOTING IT. Congratulation! NEVER reply to spam which got through the filter. And don't reply to this mail. http://cygwin.com/acronyms/#PCYMTNQREAIYR http://cygwin.com/acronyms/#TOFU Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin@cygwin.com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: cygwin-xfree Digest 15 Aug 2005 13:43:08 -0000 Issue 1820
bash --login -i /usr/local/bin/myxwin You might want to try this: bash --login -c /usr/local/bin/myxwin ^^ -i is for an interactive shell Regards, Doug Doug, that sounded like a reasonable idea. However, it didn't work for me. :) I'm thinking that there exists some binding between the Xwin process and the terminal window that started the process, and that perhaps I need to start it in a way (fork, etc.) that eliminates this binding. As I attempted to say, the bash process ($$) ends and Xwin lives on (both before and after I manually close the window). Thanks for the suggestion. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Starting Xwin - Shell Window Remains
brett lee wrote: 1. C:\cygwin\startxwin.bat exists, and has the following contents: @echo off c: chdir c:\cygwin\bin bash --login -i /usr/local/bin/myxwin bash --login -c /usr/local/bin/myxwin 2. /usr/local/bin/myxwin exists, and has the following contents: #!/usr/bin/bash # # Start the Cygwin X server, xwin echo Starting X server... # Succeeds, but must kill cygwin bash window manually nohup xwin -multiwindow -clipboard -emulate3buttons /dev/null 21 xwin -multiwindow -clipboard -emulate3buttons -silent-dup-error I don't really know about the silent-dup-error but it is in the example script, so I use it. I use this very technique so my xwin is launched with environment variables set the way I want, without maintaining a seperate set of batch commands, and I don't have a left over window - but there is a residual process reported. I presume the parent. Regards, Doug -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Can I close the startx cygwin shell?
Trebor Sreyb [EMAIL PROTECTED] writes: --- J. David Boyd [EMAIL PROTECTED] wrote: I use the startxwin.bat file in the c:\cgywin\usr\X11R6\bin folder. You can modify to open several xterms, or whatever you want, and it works great. I had tried once to customize startxwin.bat for my needs but gave up because it won't successfully launch my window manager (wmaker). Hence since then I have been using startx from within a cygwin shell session. Looks like I need to resolve the original problem first before I can get rid of that unwanted shell window. So, what happens with my startxwin.bat is that wmaker gets started, but the mouse is unusable, and the initial icons I expect to see never get displayed. Only an empty wmaker desktop. I can start an xterm, but its window has no title bar, resizing button, window borders, etc. I can use the keyboard. I had changed startxwin.bat to run the following : cd c:\cyghome\tsreyb run XWin -clipboard -silent-dup-error Also, the contents of my .xinitrc (in c:\cyghome\tsreyb) are: PATH=$PATH:/usr/X11R6/bin exec wmaker I suspected the problem was that certain X environment variables aren't set, because, by comparing environment variables with and without the problem, I find these aren't set when the problem exists: XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults XAUTHORITY=/cygdrive/c/cyghome/tsreyb/.Xauthority XCMSDB=/usr/X11R6/lib/X11/Xcms.txt XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XNLSPATH=/usr/X11R6/lib/X11/locale But, using startxwin.bat, where am I supposed to set these? I tried putting them in startxwin.bat, like this: SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults SET XAUTHORITY=/cygdrive/c/cyghome/bbyers/.Xauthority SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB SET XNLSPATH=/usr/X11R6/lib/X11/locale run XWin -clipboard -silent-dup-error but those variables still don't appear in an xterm after the manager is started, and the windowing/mousing problems persist. I also placed them in .xinitrc, but, again, the variables never get set and the problems persist. I even placed them in .cshrc and .profile. Still, no improvement. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ I went into the default startxwin.bat, and changed and uncommented the run twm command to be run wmaker (sp?), and changed -multiwindows to -rootless, and everything worked fine. I can send you a copy of it tomorrow from work, if you would like to look at it, as I took today off, and have no remote access to my work machine from home. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Starting Xwin - Shell Window Remains
As info I start X by using a shortcut to open an rxvt window running bash ( see below for contents of shortcut scripts ). (If you do not have rxvt, use setup to get it, it is unbelievable to me that with billions of dollars MS cannot include a decent command prompt.) Then, in the rxvt window I type startxscript After this I can exit the rxvt window used to start X with no problems. I have a desktop shortcut that has a target of: C:\cygwin\bin\rxvt.exe -sr -sl 2500 -geometry 80x25 -sb -fg grey -bg grey15 -fn lucida console-13-bold -e c:/cygwin/bin/bash --rcfile /home/rthompso/.bashrc and a start in value of: c:\cygwin\home\rthompso $HOME/bin is part of my path. I have $HOME/bin/startxscript that contains: $ cat startxscript #!/bin/bash /usr/X11R6/bin/startxwin.sh My /usr/X11R6/bin/startxwin.sh contains ( slight mods from the downloaded script ): #! /bin/sh export DISPLAY=127.0.0.1:0.0 export PATH=/usr/X11R6/bin:$PATH export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB export XNLSPATH=/usr/X11R6/lib/X11/locale # Cleanup from last run. rm -rf /tmp/.X11-unix # The error Fatal server error: could not open default font 'fixed' is # caused by using a DOS mode mount for the mount that the Cygwin/X # fonts are accessed through. See the Cygwin/X FAQ for more # information: # http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof # Brief descriptions of XWin-specific options: # # -screen scr_num [width height] # Enable screen scr_num and optionally specify a width and # height for that screen. # Most importantly, any parameters specified before the first -screen # parameter apply to all screens. Any options after the first -screen # parameter apply only to the screen that precedes the parameter. # Example: # XWin -fullscreen -screen 0 -screen 1 -depth 8 -screen 2 # All screens will be fullscreen, but screen 2 will be depth 8, while # screens 0 and 1 will be the default depth (whatever depth Windows # is currently running at). # -multiwindow # Start an integrated Windows-based window manager. Not to be used # with -rootless nor -fullscreen. # -rootless # Use a transparent root window with an external window manager # (such as twm). Not to be used with -multiwindow nor # with -fullscreen. # -fullscreen # Use a window as large as possible on the primary monitor. # -multiplemonitors # Create a root window that covers all monitors on a # system with multiple monitors. # -clipboard # Enable the integrated version of xwinclip. Do not use in # conjunction with the xwinclip program. # -depth bits_per_pixel # Specify the screen depth to run at (in bits per pixel) using a # DirectDraw-based engine in conjunction with the -fullscreen # option, ignored if the -fullscreen option is not specified. # By default, you will be using a DirectDraw based engine on any # system that supports it. # -unixkill # Trap Ctrl+Alt+Backspace as a server shutdown key combination. # -nounixkill # Disable Ctrl+Alt+Backspace as a server shutdown key combination (default). # Example: # XWin -unixkill -screen 0 -screen 1 -screen 2 -nounixkill # Screens 0 and 1 will allow Ctrl+Alt+Backspace, but screen 2 will not. # -winkill # Trap Alt+F4 as a server shutdown key combination (default). # -nowinkill # Disable Alt+F4 as a server shutdown key combination. # -scrollbars # Enable resizing of the server display window. Do not use in conjunction # with -multiwindow nor with -rootless. # -nodecoration # Draw the server root window without a title bar or border. # Do not use with -mutliwindow nor with -rootless. # -lesspointer # Hide the Windows mouse cursor anytime it is over any part of the # window, even if Cygwin/X is not the window with the focus. # -refresh rate_in_Hz # Specify a refresh rate to use when used with the -fullscreen option. # -trayicon # Enable the tray icon (default). # -notrayicon # Disable the tray icon. # Example: # XWin -notrayicon -screen 0 -screen 1 -screen 2 -trayicon # Screens 0 and 1 will not have tray icons, but screen 2 will. # -emulate3buttons [timeout] # Emulate 3 button mouse with an optional timeout in milliseconds. # -xf86config # Specify an XF86Config-style configuration file. # -keyboard # Specify a keyboard device from the configuration file. # # Startup the programs # # Startup the X Server with the integrated Windows-based window manager. # WARNING: Do not use 'xwinclip' in conjunction with the ``-clipboard'' # command-line parameter for XWin. Doing so would start two clipboard # managers, which is never supposed to happen. XWin -multiwindow -clipboard -silent-dup-error # Startup an xterm, using bash as the shell.