XFCE comes supplied with an xinitrc script, use that instead.
It turns out that making ~/.xinitrc & ~/.xsession a shell script with a bang path & marked executable is a relic of the past. These files are execed by the scripts which call them. Tested on FreeBSD-CURRENT with rene@ PR: 222844 Submitted by: Olivier Duchateau <duchateau.olivier at gmail> Approved by: bcr (mentor) rene Differential Revision: https://reviews.freebsd.org/D16687
This commit is contained in:
parent
61eec2b72a
commit
93329a27b5
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=52111
1 changed files with 15 additions and 11 deletions
|
|
@ -1507,9 +1507,7 @@ hald_enable="YES"</programlisting>
|
||||||
the display manager. In this case, create an executable
|
the display manager. In this case, create an executable
|
||||||
<filename>~/.xsession</filename>:</para>
|
<filename>~/.xsession</filename>:</para>
|
||||||
|
|
||||||
<screen>&prompt.user; <userinput>echo "#!/bin/sh" > ~/.xsession</userinput>
|
<screen>&prompt.user; <userinput>echo "exec /usr/local/bin/gnome-session" > ~/.xsession</userinput></screen>
|
||||||
&prompt.user; <userinput>echo "exec /usr/local/bin/gnome-session" >> ~/.xsession</userinput>
|
|
||||||
&prompt.user; <userinput>chmod +x ~/.xsession</userinput></screen>
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 xml:id="x11-wm-kde">
|
<sect2 xml:id="x11-wm-kde">
|
||||||
|
|
@ -1586,9 +1584,7 @@ hald_enable="YES"</programlisting>
|
||||||
an executable <filename>~/.xsession</filename> as
|
an executable <filename>~/.xsession</filename> as
|
||||||
follows:</para>
|
follows:</para>
|
||||||
|
|
||||||
<screen>&prompt.user; <userinput>echo "#!/bin/sh" > ~/.xsession</userinput>
|
<screen>&prompt.user; <userinput>echo "exec /usr/local/bin/startkde" > ~/.xsession</userinput></screen>
|
||||||
&prompt.user; <userinput>echo "exec /usr/local/bin/startkde" >> ~/.xsession</userinput>
|
|
||||||
&prompt.user; <userinput>chmod +x ~/.xsession</userinput></screen>
|
|
||||||
|
|
||||||
<para>Once <application>KDE</application> is started, refer to
|
<para>Once <application>KDE</application> is started, refer to
|
||||||
its built-in help system for more information on how to use
|
its built-in help system for more information on how to use
|
||||||
|
|
@ -1620,22 +1616,30 @@ hald_enable="YES"</programlisting>
|
||||||
<screen>&prompt.root; <userinput>cd /usr/ports/x11-wm/xfce4</userinput>
|
<screen>&prompt.root; <userinput>cd /usr/ports/x11-wm/xfce4</userinput>
|
||||||
&prompt.root; <userinput>make install clean</userinput></screen>
|
&prompt.root; <userinput>make install clean</userinput></screen>
|
||||||
|
|
||||||
|
<para><application>Xfce</application> uses
|
||||||
|
<application>D-Bus</application> for a message bus. This
|
||||||
|
application is automatically installed as dependency of
|
||||||
|
<application>Xfce</application>. Enable it in
|
||||||
|
<filename>/etc/rc.conf</filename> so it will be started when
|
||||||
|
the system boots:</para>
|
||||||
|
|
||||||
|
<programlisting>dbus_enable="YES"</programlisting>
|
||||||
|
|
||||||
<para>Unlike <application>GNOME</application> or
|
<para>Unlike <application>GNOME</application> or
|
||||||
<application>KDE</application>,
|
<application>KDE</application>,
|
||||||
<application>Xfce</application> does not provide its own login
|
<application>Xfce</application> does not provide its own login
|
||||||
manager. In order to start <application>Xfce</application>
|
manager. In order to start <application>Xfce</application>
|
||||||
from the command line by typing <command>startx</command>,
|
from the command line by typing <command>startx</command>,
|
||||||
first add its entry to <filename>~/.xinitrc</filename>:</para>
|
first create <filename>~/.xinitrc</filename> with this
|
||||||
|
command:</para>
|
||||||
|
|
||||||
<screen>&prompt.user; <userinput>echo "exec /usr/local/bin/startxfce4 --with-ck-launch" > ~/.xinitrc</userinput></screen>
|
<screen>&prompt.user; <userinput>echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xinitrc</userinput></screen>
|
||||||
|
|
||||||
<para>An alternate method is to use
|
<para>An alternate method is to use
|
||||||
<application>XDM</application>. To configure this method,
|
<application>XDM</application>. To configure this method,
|
||||||
create an executable <filename>~/.xsession</filename>:</para>
|
create an executable <filename>~/.xsession</filename>:</para>
|
||||||
|
|
||||||
<screen>&prompt.user; <userinput>echo "#!/bin/sh" > ~/.xsession</userinput>
|
<screen>&prompt.user; <userinput>echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsession</userinput></screen>
|
||||||
&prompt.user; <userinput>echo "exec /usr/local/bin/startxfce4 --with-ck-launch" >> ~/.xsession</userinput>
|
|
||||||
&prompt.user; <userinput>chmod +x ~/.xsession</userinput></screen>
|
|
||||||
</sect2>
|
</sect2>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue