Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2009 10:45:05 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Pieter Donche <Pieter.Donche@ua.ac.be>
Cc:        "mail.list freebsd-questions" <freebsd-questions@freebsd.org>
Subject:   Re: root user, graphical programs
Message-ID:  <20090515104505.8de53e2c.freebsd@edvax.de>
In-Reply-To: <alpine.BSF.2.00.0905151032150.85799@macos.cmi.ua.ac.be>
References:  <alpine.BSF.2.00.0905150843110.83166@macos.cmi.ua.ac.be> <4A0D1CC2.8000107@infracaninophile.co.uk> <alpine.BSF.2.00.0905151032150.85799@macos.cmi.ua.ac.be>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 May 2009 10:38:34 +0200 (CEST), Pieter Donche <Pieter.Donche@ua.ac.be> wrote:
> No luck (yet)
> I tried both methods, (with xpdf as a graphical program)
> The first still gives 
> # xpdf
> Can't open display
> 
> The second method
> # xpdf
> No protocol specified
> Error: Can't open display:  :0.0
> 
> (after su -, $HOME was indeed /root)
> (in /root .Xauthority was changed/created, $DISPLAY is :0.0)

Maybe very unelegant, but has a chance to work:

	% su -
	Password:
	# cp /home/<your-username>/.Xauthority /root
	# setenv DISPLAY :0.0
	# xpdf

This assumes that csh is your dialog shell. If it's not, you may
need another syntax to change DISPLAY, e. g. for BASH.

It worked in the past, but who knows what still works in X... :-)


-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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