Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)




On Jan 26, 2008, at 15:51, Roger Melly wrote:

Hello, I am trying to do something which ought to be quite simple but there doesn't seem to be an obvious way.

I want to run a remote session from a PC on MacOS X11 server and currently do this by running

	/usr/X11R6/bin/X -broadcast -once

in a terminal window. This is OK but the server fills both of the two displays. I would like to have it fill just one display or in fact ideally the server just to be a `normal' (non-maximised) window on the Mac display, and to have all the menu options that X11.app shows. It doesn't seem to be possible to launch X11.app with the - broadcast -once options, or to make /usr/X11R6/bin/X work like X11.app but either of those would achieve what I want.

Any ideas ?

You can do something like this (not tested or checked for typos):

--- begin argv0_x11_hack.c ---
#include <unistd.h>
int main(int argc, char **argv) {
	argv[0] = "/Applications/Utilities/X11.app/Contents/MacOS/X11";
	return execv("/usr/X11/bin/X", argv);
}
---

gcc -o x11_hack argv0_x11_hack.c
./x11_hack -broadcast -once

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

References: 
 >(no subject) (From: Roger Melly <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.