Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jan 2005 16:38:06 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Rob <spamrefuse@yahoo.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Xorg ICE vs. Xfce4 (4.2-RC3) needs fixing /etc/rc.d/cleartmp
Message-ID:  <20050107003806.GA14003@odin.ac.hmc.edu>
In-Reply-To: <41DDC4F2.5090709@yahoo.com>
References:  <41DDC4F2.5090709@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--0F1p//8PRICkK4MW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jan 07, 2005 at 08:08:34AM +0900, Rob wrote:
>=20
> Hi,
>=20
> I'm testing Xfce 4.2-RC3, but it has following problems at startup:
>=20
> ---------------- .xsession-errors
> _IceTransmkdir: ERROR: euid !=3D 0,directory /tmp/.ICE-unix will not be=
=20
> created.
> _IceTransSocketUNIXCreateListener: mkdir(/tmp/.ICE-unix) failed, errno =
=3D 2
> _IceTransMakeAllCOTSServerListeners: failed to create listener for local
> xfce4-session: Unable to establish ICE listeners: Cannot establish any=20
> listening sockets

> The patch below from Pawel Worach solves the problem.

Could you please try the following patch?  It does the same thing, but
gives the inode paranoid a way to disable the creation of these
directories or only create the ones they need.

-- Brooks

Index: rc.d/cleartmp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/cvs/src/etc/rc.d/cleartmp,v
retrieving revision 1.11
diff -u -p -r1.11 cleartmp
--- rc.d/cleartmp	7 Oct 2004 13:55:25 -0000	1.11
+++ rc.d/cleartmp	7 Jan 2005 00:31:51 -0000
@@ -35,5 +35,7 @@ run_rc_command "$1"
 # restarting X
 #
 rm -f /tmp/.X[0-9]-lock
-rm -fr /tmp/.X11-unix
-mkdir -m 1777 /tmp/.X11-unix
+if [ -n ${clear_tmp_xdirs} ]; then
+	rm -fr ${clear_tmp_xdirs}
+	mkdir -m 1777 ${clear_tmp_xdirs}
+fi
Index: defaults/rc.conf
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /usr/cvs/src/etc/defaults/rc.conf,v
retrieving revision 1.235
diff -u -p -r1.235 rc.conf
--- defaults/rc.conf	15 Dec 2004 12:39:28 -0000	1.235
+++ defaults/rc.conf	7 Jan 2005 00:30:49 -0000
@@ -443,6 +443,8 @@ linux_enable=3D"NO"	# Linux binary compati
 svr4_enable=3D"NO"	# SysVR4 emulation loaded at startup (or NO).
 osf1_enable=3D"NO"	# Alpha OSF/1 emulation loaded at startup (or NO).
 clear_tmp_enable=3D"NO"	# Clear /tmp at startup.
+clear_tmp_xdirs=3D"/tmp/.X11-unix /tmp/.font-unix /tmp/.ICE-unix"
+			# Directories needed by X11
 ldconfig_insecure=3D"NO"	# Set to YES to disable ldconfig security checks
 ldconfig_paths=3D"/usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local=
/lib/compat/pkg"
 			# shared library search paths

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--0F1p//8PRICkK4MW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFB3dntXY6L6fI4GtQRAiTRAKDmZQ3BuLQ+2rh1bcrP9RrwsJ0PAQCgtEdp
NxzWRmFD/8ZkBxKoTmmEhX8=
=HVSn
-----END PGP SIGNATURE-----

--0F1p//8PRICkK4MW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050107003806.GA14003>