Re: Problem running C server with Cygwin
On 28/05/07, Nick048 wrote: I have written a C Server program and I have compiled this with Cygwin without errors. Running the exe file with Cygwin, if the client (telnet) send to Server a word (in italian language parola), in the Cygwin window this message is displayed: 5 [main] myserver 2736 _cygtls:: handle_exception: Error while dumping state (probably corrupted stack) i don't get this error running the code you linked. i'm running gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) i did notice a simple bug in your program though, line 141 should be: if (NodoTrovato == NULL){ otherwise you never create words in your list. after that, it ran fine. (if by fine you wanted each connection to only add one word to your server) mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cygpath problems
java -classpath ${AHECLIENT_HOME}/lib/org.mortbay.jetty.jar org.mortbay.util.PKCS12Import $1 ${AHECLIENT_HOME}/conf/aheclient.ks keytool -keystore ${AHECLIENT_HOME}/conf/aheclient.ks -import -alias rootca -file ${AHECLIENT_HOME}/lib/certs/cacert.pem -trustcacerts cygpath -w some_dir will convert to a windows directory that can be accepted by java etc (check man cygpath). so try java -classpath $(cygpath -w ${AHECLIENT_HOME}/lib/org.mortbat.jetty.jar) ... mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rxvt-unicode 7.7-5 - titles displaying wrongly
On 12/19/06, Mark Fisher wrote: i just upgraded to 7.7-5 from 7.7-4 and noticed that it breaks my titles of sessions that i create. it only seems to happen when using the fluxbox windowmanager. i tried with fvwm2 and the titles appear fine in 7.7-5. ... and i open sessions running urxvtc -e /bin/bash --login i should learn to pay more attention to release notes. changing my startup to LC_CTYPE=en_UK.UTF-8 urxvtc -e /bin/bash --login fixes the issue. mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: emacs trouble
On 12/13/06, Lorenzo Travaglio ltrav02 at yahoo dotit wrote: I'm experiencing a little problem using emacs. It seems that C-x C-c doesn't work, and I leave Emacs via F10-f-e. I'm using only text window, not X, and the Emacs version is 21.2-13. same here if i load it from a dos shell, but works fine from within an rxvt session (which i would recommend anyway). i'm testing this with same version of emacs and invoking with emacs -q -nw to remove any startup. mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: bash CRLF problems (I have read the recent announcement)
On 12/5/06, Kevin Layer layer at franz.com wrote: Larry Hall (Cygwin) reply-to-list-only-lh at cygwin.com wrote: version=`cat foo1.out` ... Time to adjust your expectations. ;-) Text mounts write CRNL as EOLs for all files that are not explicitly opened as binary (or text for that matter). Text mounts remove the CR from EOLs read from files that are not explicitly opened as binary (or text). 'cat' explicitly opens the file as binary. What is the portable way to get the contents of foo1.out into a variable, getting proper translation of the end of lines? (If the answer is use `d2u' that is not portable.) I thought I was safe by using text mounts--I spent quite a while looking at the archives before posting and thought I had covered all bases. Kevin if you change the echo's to echo -n you don't get the ^M chars, as it surpresses the CR in the output. is this possible on the real scripts you talk about, or is the version generating script/app not changeable? $ cat foo1.sh echo -n 8010 foo1.out $ cat foo2.sh sh foo1.sh version=`cat foo1.out` echo -n ${version}.bar foo2.out cat -v foo2.out $ sh foo2.sh 8010.bar alternate solutions to using cat (which allow the \r\n in foo1.out) : version=`cut -f1 foo1.out` version=`awk '{print $1}' foo1.out` version=`sed -n '1p' foo1.out` cat is doing what it's supposed to, putting the whole file in the variable. don't use it. if you can't change the \r\n from your version file, use one of the alternatives. mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Installing cygwin on a computer without internet connection
On 11/18/06, Florian Haßmann wrote: I've got a computer without internet connection, but I want to install cygwin there. What can I do? Is there a .zip file or anything else including all the data to install? simply use setup to download without installing on a machine that does have internet connection, then copy the entire directory and setup.exe to a portable disk/usb/dvd and install on the connectionless machine(s) using the install from local directory option. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: problem with malloc/realloc. Pls help.
On 8/21/06, Omololu wrote: Hi, i have the following code. it compiles with gcc in Cygwin but the contents of the array ifitQ that I get after the call to the subroutine readCharges2 is gibberish. looks like a passing by reference problem. if you add debug to look at the address of ifitQ at all stages, you'll notice that the copy pointer in readCharges2 gets changed, but that isn't the same pointer as in the calling block. see section 2.17 of http://www.lysator.liu.se/c/c-faq/c-2.html i don't understand how linux is getting it right tbh. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: GnuPG bug: --refresh-keys
On 8/7/06, Max Bowsher wrote: Reini Urban wrote: Did you get gpg-agent working? My private gnupg-1.9.20-1 fails. I used the stable release, not the development branch. hi, which version of gpg-agent and gpg are you using? My research [reading from latest announce : http://lists.gnupg.org/pipermail/gnupg-announce/2006q3/000229.html GnuPG 1.9.x is the development series of GnuPG. This version merged the code from the Aegypten project and thus includes the gpg-agent ] and various other postings on the subject, seems to point that gpg-agent is only available with the development version of gpg, 1.9. (hence i don't understand how you are using a stable release to get gpg-agent) i've done as it says in that message, use gpg 1.4 for gpg and built gpg-agent from the source, but get the same errors mentioned by Reini. i've had huge trouble trying to track down in the source why gpg-agent fails to talk to gpg for key information, so getting your version info would be a great help to know what versions do work together, and how you installed (i.e. built manually vs installed). mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Checking XCOPY Exit Value in Cygwin Bash
On 8/6/06, Shane wrote: Can you please provide me a way of checking the XCOPY exit code: reference [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true] within Bash? result codes are stored in $? in bash success = 0 usually, and xcopy seems to follow the norm here. here, i did xcopy somefile somedir echo $? which returned 0 when i tried xcopy nonfile somedir echo $? i get 4 so test for 0 for success. extensions of this idea: xcopy somefile somedir echo ok xcopy somefile somedir || echo fail -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to install cygwin without internet connection?
On 8/4/06, Rupert Kolb wrote: we have some (~20) PCs here, which have no connection to the Internet. Reason: Security! Question: How can I install cygwin on such PCs? can they all be setup to share a common drive, and then choose install from local directory and point it to the shared drive? you simply have to put the entire cygwin download there then. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: making a cygwin install.
From: Igor Peshansky [mailto:[EMAIL PROTECTED] seems you missed the http://cygwin.com/acronyms/#PCYMTNQREAIYR hint from Igor. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: need assistance w/sftp home folder creation
On 8/4/06, MyStiC wrote: Also, I am looking for a way to have the initial setup of the users' home directories to also create predefined links. ie /home/user/ link_1, link_2... Presently, I am creating these links manually so the restricted users, or any user which is unfamiliar with the file system, can quickly access public resources. can't help with the sftp, but one solution to creating the links is to create a script that checks for them and creates them if they don't exist. then put it in /etc/profile.d/ and it will be run when they run a shell and thus the links will be available to them. i have several scripts in this area, export.sh, alias.sh, ... to set common values for each shell. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 1.5.21-1 DLL Loading Problem
On 8/4/06, Karl M wrote: Hi Rob... I got... $ ./run Foundation load failed: Permission denied HTH, not without knowing your setup it doesn't, no. and he was asking for personal mails to keep the spam off the list while collating information about the bug. try running cygcheck -cd gcc cygwin and mailing it to rob at the very least to show what versions of the compiler and cygwin you are running. reporting you got a problem but not knowing what versions you are running doesn't really help narrow the problem down. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Where is complex.h
On 7/26/06, TV JOE wrote: Would any of you that replied be interested in assisting me with compiling this program. It's a C program written for a Suse Linux distribution. The author maintains the only problem would be resolving the complex.h warnings. just for completion on the mailing list and in case anyone else has a similar issue with complex numbers, i found using the c9x-complex math package was needed to compile your program. i got the source from http://www.netlib.org/cephes/ you need to amend the makefile slightly by adding stubs.o to the LIBMCFILES definition if you're not using the rest of cephes, i.e. change it to LIBMCFILES = $(SFILES) $(DFILES) $(LFILES) stubs.o run make, ignore the errors for the apps that don't compile, and then copy the libmc.a file into your libs path. copy *.h to your include path mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Why are Windows paths broken in make 3.81?
On 7/24/06, Joachim Achtzehnter [EMAIL PROTECTED] wrote: This sarcastic response to one sentence out of a much longer post quoted in isolation suggests that a clarification is in order. here here! i'd like to add that i'm getting fed up of reading sarcastic comments from cgf since i rejoined the mailing list. this particular gem: I assumed the compiled program would work in a bash shell but it only works in a dos shell-its too late to worry about why that is. I miss unix. Yeah, things work a lot better in a dos shell on unix. ( http://cygwin.com/ml/cygwin/2006-07/msg00682.html ) the sole comment to an entire post sums up for me a very arrogant attitude towards people with less knowledge who need help. this forum (i hope) was never meant as a personal sarcasm area and to read it it's very annoying. if you don't have something constructive to say, lay off laying into people. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
w32-shell-execute function definition is void
i cannot seem to be able to use/find w32-shell-execute. i'm using emacs v21.3.50.1, but it was the same under a previous version (v21.2.13). i've tried moving my .emacs and starting up clean, but it is just always comes back with the function definition being void if i try to excecute anything that uses this function. Typing M-x w32 and hitting tab comes back empty (No match). i tried compiling the source version of 21.3.50.2 but i get the errors mentioned elsewhere with bootstrap-emacs causing a segmentation fault after altering the souce for the emacs/d_ino issue against cygwin 1.5.19-4, but browsing the source i can see the w32-shell-execute method is in the source, but i just don't seem to be able to ever get it to be recognised. I mostly use emacs-X11, but i've just tested it with the non x11 binary distribution from installing with setup.exe and that has the same problem. can anyone help me understand why this fails? is there something i'm missing about the cywin build of emacs? thanks, mark -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: xterm
not 100% on topic, but this may help. if you want to know if you have something installed from one of the cygwin packages, try the attached script. it will search through all installed packages and look for the name you supply, e.g. whichpackage xterm.exe gives (on my machine): --- xterm /usr/bin/xterm.exe so it's installed in a package called xterm and installed to /usr/bin. in your case it would have come up with no results, which indicates the application isn't installed from any package. at which point, it's usually worth looking through all the available packages in setup. this is similar to cygcheck -f /usr/bin/xterm but you can use search patterns and don't need to know where the file you are searching on is installed (because cygcheck -f xterm doesn't work, but then you could use locate first. as always there are a zillion ways to achieve the same tricks) hth, mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meadows, Marty Sent: 05 January 2005 19:34 To: 'cygwin-xfree@cygwin.com' Subject: xterm I've downloaded cygwin/x to my windows xp platform. In /usr/X11R6/bin I see the following x clients: xhost, xdpyinfo, xclock, xeyes ... but I don't see xterm. Shouldn't I have an xterm? I also don't see a startx or startxwin.bat file anyplace in the cygwin/x freeware ... and I don't see any X-startup-scripts stuff ... anywhere. Seems like I'm missing some important pieces to the puzzle. What am I doing wrong? Thanks! Martin Meadows This e-mail (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please inform us and delete it. Should you wish to communicate with us by e-mail we cannot guarantee the security of any data outside our own computer systems. For the protection of our systems and staff, incoming and outgoing emails are automatically scanned for viruses and content. whichpackage Description: Binary data
RE: Problem starting X
I've already created a patch which loads the function dynamicly from the dll. great, I was just looking at how to do exactly that after seeing that detecting windows versions isn't the best way to go about it. mark This e-mail (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please inform us and delete it. Should you wish to communicate with us by e-mail we cannot guarantee the security of any data outside our own computer systems. For the protection of our systems and staff, incoming and outgoing emails are automatically scanned for viruses and content.
RE: Problem starting X
hmm, according to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/monitor _82yb.asp it's available from win98 onwards, and windows 2000 onwards, so yes, looks like win95 and winNT not supported. I'll have a go at patching the code for detecting windows version. mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Gottwald Sent: 14 December 2004 12:47 To: [EMAIL PROTECTED] Subject: Re: Problem starting X On Tue, 14 Dec 2004, Mats Jansson wrote: Hello, I hope someone could help me with the following: Some days ago I installed Cygwin 1.5.12 on NT4 SP6, I didn't install X-startup-scripts, but I was able to start X with XWin.exe. Yesterday, I installed X-startup-scripts (I guess I got other packages and/or updates as well). Now I can't start X at all. I get a pop-up window with title XWin.exe - Entry Point Not Found and the text The procedure entry point EnumDisplayMonitors could not be located in the dynamic link library USER32.dll. Any idea? Seems like the new feature is not supported on NT4 (and maybe W95 too) revert to xorg-x11-xwin-6.8.1.0-6 until this is resolved. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723 This e-mail (and any attachments) may contain privileged and/or confidential information. If you are not the intended recipient please do not disclose, copy, distribute, disseminate or take any action in reliance on it. If you have received this message in error please inform us and delete it. Should you wish to communicate with us by e-mail we cannot guarantee the security of any data outside our own computer systems. For the protection of our systems and staff, incoming and outgoing emails are automatically scanned for viruses and content.
RE: XDMCP Woes + Solaris
You could try using a different run, http://www.extendingflash.com/utilities/runhide.html provides an application called runhide which does a similar job as run. This may solve your problem mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Gottwald Sent: 10 December 2004 10:24 To: [EMAIL PROTECTED] Subject: Re: XDMCP Woes + Solaris On Thu, 9 Dec 2004, Mark Reis wrote: Hello, I've been banging my head up against a wall trying to get XDMCP working with two solaris machines. Setup: Machine 1: Solaris 9 - The 9/02 build - not a lot of patches have been applied to bring it to the current level. Machine 2: Solaris 9 - The 9/04 build - Scenario: I attempt to connect to both hosts with the startxdmcp batch file with the run line: run XWin -logverbose 3 -query hostname -nodecoration -lesspointer Results: Now here is the part that is baffling. Connecting to machine 1 works fine - Connecting to machine 2 fails. However, Exceed 6.2 is able to connect to both machines just fine. Have you checked the FAQ. There are some scenarios with XDMCP and Solaris resolved. Additionally - If I remove -nodecoration, Xorg will start, but there is no display shown. This is a know problem with the run utility. It will hide console window but unfortunatly the main window too. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
RE: XWin
how are you starting x? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Felix85 Sent: 09 December 2004 07:31 To: [EMAIL PROTECTED] Subject: XWin For some reason when i try to start xwindows it will say that it is already open but i havent even opened it. Here is the log file.
RE: [Patch] Starting X on different monitors
Thanks! Glad I could help. Thanks for putting me right on the style and fixing the bugs. Anything else need doing? Is there a bug list / wish list I could see if I could tackle? Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Gottwald Sent: 08 December 2004 15:19 To: Mark Fisher Cc: [EMAIL PROTECTED] Subject: Re: [Patch] Starting X on different monitors On Tue, 7 Dec 2004, Mark Fisher wrote: This is my first patch, so I've created it for the two files updated (winprocarg.c and InitOutput.c). I've tried to keep the format the same as already there, I'm using emacs in C mode, so if the spacing is weird, blame that :) It works fine here on the dual monitor setup I have. I don't have a gfx card with 3 heads, but in theory, as long as EnumDisplayMonitors honours the same numbering as Windows shows them in Display Properties then it should work fine. There may be problems with mirroring display drivers but as long as nobody complains I'll stick with it. Can someone please try this out? Works great. I've done some small changes - store global variables in a struct which is allocated locally and pass the pointer to it through dwparam - moved the monitorNum counter to the struct too. If getMonitorInfo gets called twice (like with two -screen arguments) the count did not start at 1 again - fixed a problem with @m argument and following arguments (@m was expected to be the last argument on the commandline) - @m format should not set userGaveWidthAndHeight to allow adjusting the area with border sizes. But great work anyway. What's the procedure for getting this into CVS after it's been testing? I've commited it. If you have bigger patches or want to work on larger changes I can try to get you cvs write access to freedesktop.org. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
RE: starting cygwinx
hey, don't sweat it! i've just been getting up to speed on this after playing with x for a few years but not using it properly. here's how I do things (so I'm open to flames too!) I used to use the startx... scripts, but don't bother, it's actually really easy to do it without. 1. dead easy way: download morten's cygwin x launcher (as I write this, it's top link on www.cygwin.com - software section) this is a great way to learn and try out all the options and window managers for X. Click a few check boxes, click Go and try out X 2. another easy way: once you've played with Morten's launcher, you should be a bit more happy with some of the options available, so now you can start to work with X via xinit and some command line params to fine tune how you run it. so, install openbox (and a few other windows managers along with your xorg stuff, e.g. fvwm, twm etc.) then create a file in your $HOME called .xinitrc in it, put these two lines: - - - - - 8 - - - - #!/bin/bash openbox - - - - - - - - - - dunno if line 1 is needed, but I always force scripts to be bash-able. after this, you can simply type xinit to run x a better startup is something like: nohup /tmp/xinit.log /dev/null 21 xinit -- :0 -nodecoration -clipboard basically, everything after the -- are args that get passed to X (or Xwin, as that is sym-linked to Xwin, or Xwin_GL if you have a GL) the nohup means if my shell dies, don't die yourself you can remove -nodecoration if you want to have windows borders, but I tend to run X on a 2nd monitor and don't want the windows border. -clipboard allows copy and paste between windows and X. I'd rather have a -noclipboard option personally, as I can't think of a reason to NOT have it enabled. I've also install xfce4 as a full desktop. It's nice, and I did it out of curiosity. If you just want to play, get fvwm or openbox and mess around with the window manager, before expanding. mark - - - some of my own setup from cygcheck -c -d : fvwm2.4.7-3 openbox 0.99.1-4 X-start-menu-icons 1.0.3-2 X-startup-scripts 1.0.10-2 xorg-x11-base 6.8.1.0-1 xorg-x11-bin6.8.1.0-2 xorg-x11-bin-dlls 6.8.1.0-1 xorg-x11-bin-lndir 6.8.1.0-1 xorg-x11-devel 6.8.1.0-1 xorg-x11-etc6.8.1.0-1 xorg-x11-f100 6.8.1.0-3 xorg-x11-fcyr 6.8.1.0-2 xorg-x11-fenc 6.8.1.0-2 xorg-x11-fnts 6.8.1.0-3 xorg-x11-fscl 6.8.1.0-2 xorg-x11-fsrv 6.8.1.0-1 xorg-x11-libs-data 6.8.1.0-1 xorg-x11-man-pages 6.8.1.0-1 xorg-x11-man-pages-html 6.8.1.0-1 xorg-x11-nest 6.8.1.0-1 xorg-x11-vfb6.8.1.0-1 xorg-x11-xwin 6.8.1.0-5 xorg-x11-xwin-gl6.8.1.0-5 this ain't a complete list, but is some of the x related stuff. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brock Denson Sent: 08 December 2004 18:34 To: [EMAIL PROTECTED] Subject: starting cygwinx sorry about the newbie question. i can feel the flames coming... anyway, i have downloaded and installed cygwin and the xfree libraries via setup as per the users guide on the website. i can not find the startwin.bat or .sh files nor is the /etc/X11/xinit file present. can someone tell me where i can find these files and how to get an xterm window started. thanks, brock
[Patch] Starting X on different monitors
Hi, I've created a patch for allowing an extra parameter to the -screen arg for Xwin to tell which monitor to open on. Now you can specify : -screen num [width height [x y] | [EMAIL PROTECTED] ] monitors are 1 indexed. e.g. -screen 0 @2 will start X on the second monitor, using the monitors full dimensions -screen 0 [EMAIL PROTECTED] will start X on the third monitor, size 800x600 with an offset in that monitor of 200,200 (i.e. go from 200,200 to 1000,800 in 2nd monitor) -screen 0 [EMAIL PROTECTED] will start X on the 2nd monitor with no offset, sized 1280x1024 It will error if you specify a monitor that isn't attached. I haven't implemented the version where you use spaces, i.e. -screen 0 800 600 200 200 @3 so that could be an easy extension to the patch. This is my first patch, so I've created it for the two files updated (winprocarg.c and InitOutput.c). I've tried to keep the format the same as already there, I'm using emacs in C mode, so if the spacing is weird, blame that :) It works fine here on the dual monitor setup I have. I don't have a gfx card with 3 heads, but in theory, as long as EnumDisplayMonitors honours the same numbering as Windows shows them in Display Properties then it should work fine. Can someone please try this out? What's the procedure for getting this into CVS after it's been testing? Comments welcome Thanks, Mark Fisher ScreenOnMonitor.diff Description: Binary data
RE: Starting X on a second monitor - kludge that works
excellent. my only query now is how do I programaticaly find out the offset of my second monitor, as I have it slightly raised from the primary, as opposed to simply placed side by side. thanks, mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Earle F. Philhower III Sent: 05 December 2004 05:11 To: [EMAIL PROTECTED] Subject: RE: Starting X on a second monitor - kludge that works Done as an extension to the -screen option. Just tack on an X and Y position after width and height (witn -geometry format or just space-delimited) and you're set. ex: make an 800x600 window and move it to the 2nd monitor XWin.exe -screen 0 800 600 1024 0 XWin.exe -screen 0 800x600+1024+0 You can still specify just a width and height, so no changes to current scripts needed: XWin.exe -screen 0 800 600 XWin.exe -screen 0 800x600 At 04:52 PM 12/4/2004 +0100, Alexander Gottwald wrote: We'll have to see how this fits with the old -screen n WxH option. -Earle F. Philhower, III [EMAIL PROTECTED] cdrlabel - ZipLabel - FlpLabel http://www.cdrlabel.com
FW: Update links to ViewCVS
Hi, Can someone update the viewcvs links on http://x.cygwin.com/devel/server/ please? The initial subdir xorg is missing and causes a view cvs error page on the links given. Thanks, Mark
RE: Starting X on a second monitor - kludge that works
Hi Earle, Funnily enough I'm just writing a patch for the @monitor, which involves me dusting off my old c hat. I've got the monitor reading information working, I'm just integrating it into winprocarg.c Should be done pretty soon... Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Earle F. Philhower, III Sent: 06 December 2004 21:02 To: [EMAIL PROTECTED] Subject: RE: Starting X on a second monitor - kludge that works Howdy Mark, -- Original Message - Subject: RE: Starting X on a second monitor - kludge that works From: Mark Fisher [EMAIL PROTECTED] my only query now is how do I programaticaly find out the offset of my second monitor, as I have it slightly raised from the primary, as opposed to simply placed side by side. -- If you're asking just to set up your machine once, the simplest thing to do is open up the Display properties, and click-hold on the 2nd monitor, it should then display the (X,Y) position in it. Since it's raised you should have a negative Y position, which does work OK with the checked-in patch. Programmatically, I like AGO's @monitor idea... -- -Earle F. Philhower, III [EMAIL PROTECTED] http://www.ziplabel.com
RE: Starting X on a second monitor - kludge that works
I tried adding -position to a simple xinit session and X bombs out with the usage command, i.e. (~/.xinitrc) fvwm2 $ xinit -- -position 100 100 it doesn't look like these paramters exist mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Earle F. Philhower III Sent: 02 December 2004 05:49 To: [EMAIL PROTECTED] Subject: Re: Starting X on a second monitor - kludge that works Howdy... At 05:38 PM 12/1/2004 +, Mark Fisher wrote: I've been trawling the archives looking for a solution to the problem of starting Xwin on a second monitor. The only way I've been able to get this to work is to use a program that allows you to send the app to a 2nd monitor. The program in question is UltraMon. If your second monitor is a different size to your primary, then no fear, just specify the size of the screen when starting x. I've just ported xfce4.2 to cygwin, and start it like this: bash --login -c /opt/xfce4/bin/startxfce4 -- -nodecoration -screen 0 1280 1024 I'm not familiar with xfce, but why not just add a -position x y option to XWin.exe such that when present and in a root-window mode it'll move the created window to whatever screen you want (via the absolute Windoze X/Y position)? That's all the UltraMon app is doing... -Earle F. Philhower, III [EMAIL PROTECTED] cdrlabel - ZipLabel - FlpLabel http://www.cdrlabel.com
Starting X on a second monitor - kludge that works
Hi. I've been trawling the archives looking for a solution to the problem of starting Xwin on a second monitor. The only way I've been able to get this to work is to use a program that allows you to send the app to a 2nd monitor. The program in question is UltraMon. If your second monitor is a different size to your primary, then no fear, just specify the size of the screen when starting x. I've just ported xfce4.2 to cygwin, and start it like this: bash --login -c /opt/xfce4/bin/startxfce4 -- -nodecoration -screen 0 1280 1024 (this I run as a batch file using either the /usr/X11R6/bin/run to hide the window, or a free program I found called runhide) which opens then screen at my 2nd monitor's resolution (but on the primary monitor), then on the task bar, RMB on the app, choose Move to other monitor. For those of you fortunate enough to have a radeon gfx card (my last job used dell's with radeon cards), then the native gfx drivers allow this kind of functionality too. anyone found another method for doing this? I quite like XFCE on my 2nd monitor. Now to port firefox using gtk under cygwin... Mark Fisher