Re: Can't open display: <none>. X must be running and $DISPLAY set.
Brought to you by:
captnmark
|
From: mpmackenna <mpm...@gm...> - 2007-09-27 15:24:03
|
I located /etc/X11/xinit/xinitrc is this the right file? I ask because I see
it as .xinitrc and the one I located is not a system file? If it's the
right file where should I insert the line for executing icewm-session?
Thanks again for your help. Mike
Here is what my /etc/X11/xinit/xinitrc file looks like....
#!/bin/sh
# Copyright (C) 1999 - 2004 Red Hat, Inc. All rights reserved. This
# copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the
# GNU General Public License version 2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# Mandatorily source xinitrc-common, which is common code shared between the
# Xsession and xinitrc scripts which has been factored out to avoid
duplication
. /etc/X11/xinit/xinitrc-common
# The user may have their own clients they want to run. If they don't,
# fall back to system defaults.
if [ -f $HOME/.Xclients ]; then
exec $DBUS_LAUNCH $HOME/.Xclients || \
exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
exec $DBUS_LAUNCH /etc/X11/xinit/Xclients || \
exec /etc/X11/xinit/Xclients
else
# failsafe settings. Although we should never get here
# (we provide fallbacks in Xclients as well) it can't hurt.
xclock -geometry 100x100-5+5 &
xterm -geometry 80x50-50+150 &
if [ -x /usr/X11R6/bin/twm ]; then
exec /usr/X11R6/bin/twm
fi
fi
Gert Brinkmann wrote:
>
> mpmackenna wrote:
>
>> Oh, the reason I think I need to configure the xinitrc file is because
>> when
>> I run "icewm-session" at the shell prompt I get "Can't open display:
>> <none>.
>> X must be running and $DISPLAY set.". If I type "startx" X opens and
>> runs
>> just fine. Thanks again! Mike
>
> Yes, you have to start X either by startx or by using a display manager
> like xdm, kdm or gdm.
>
> In case of startx you have to edit the .xinitrc so it includes the
> starting of icewm:
>
> exec /usr/bin/icewm-session
>
>
> Check if the path is correct on your system via "which icewm-session".
>
> Greetings,
> Gert
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> IceWM-user mailing list
> Ice...@li...
> https://lists.sourceforge.net/lists/listinfo/icewm-user
>
>
--
View this message in context: http://www.nabble.com/Can%27t-open-display%3A-%3Cnone%3E.-X-must-be-running-and-%24DISPLAY-set.-tf4528844.html#a12923696
Sent from the icewm-user mailing list archive at Nabble.com.
|