On Thu, Mar 31, 2005 at 19:27:59 +0200 (+0200), Tommy Pettersson wrote: > Matus "fantomas" Uhlar wrote: > > I think that means xmove isn't able to use local sockets for X connection, > > which is what I want. > > It is what I want too, and here is some code that implements > it. > > So, here's what it does: > > When xargs connects to a server it will check if the name > of the server is the same as the the local host. It it is, > it will try to connect to /tmp/X11-unix/Xn before it tries > to connect via tcp. > > This could be made better (feel free to do so!). It breaks > the convention that :0 means "some (maybe local)" type of > connection and host:0 means tcp connection, since host:0 may > now create a local connection. It only tries the /tmp...unix > path; I believe there are some other ways to make a local > connection to an X server.
Many thanks for the fantastic patch! I've made the small change so that "host:0" will still try tcpip but ":0" will use the Unix domain socket in /tmp. As you say, this is the normal convention, but it also helps since a machine may have many different names (e.g. host.domain.com, host, alias.domain.com, localhost) etc. > It also adds a new option -interface. By default xmove > listens to all interfaces, and I only want to run it locally > on my machine. But with `-interface host' it only listens > for connections to host (which will be localhost in my case). Two for the price of one - great stuff. I just want to check I've not broken anything with my small changes to your patch and then I'll do an upload in a few days. Adrian -- Email: [EMAIL PROTECTED] Windows NT - Unix in beta-testing. GPG/PGP keys available on public key servers Debian GNU/Linux -*- By professionals for professionals -*- www.debian.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

