Re: SLIM and XFCE4
On Wed, 4 Nov 2009 23:01:19 -0800 (PST), Alexandre L. axel...@ymail.com wrote: mmm. I don't know. But with this config file, XFCE4 launch is OK (or seems OK). That may be possible, as well as correct. I have learned - many many years ago, so it may already have changed - that .xinitrc is a SHELL SCRIPT that is executed on X startup. So all the rules for shell scripts do apply, such as declaring the interpreter with the #! special comment. Furthermore, .xinitrc serves as a kind of init process, so that the exec statement is needed to replace the .xinitrc process by the window manager. See that .xsession serves a similar process and needs a certain form so that programs that use it (e. g. xdm) do the right thing. My .xsession does look like this: #!/bin/csh source ~/.cshrc exec ~/.xinitrc It is needed so that xterms running csh inherit the settings from my .cshrc, and then .xsession continues running as .xinitrc, which finally runs as the window manager (here: WindowMaker, last line exec wmaker). But as I said, it may be handled completely differently today. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: SLIM and XFCE4
On Thu, Nov 05, 2009 at 10:49:44PM +0100, Polytropon wrote: On Wed, 4 Nov 2009 23:01:19 -0800 (PST), Alexandre L. wrote: mmm. I don't know. But with this config file, XFCE4 launch is OK (or seems OK). That may be possible, as well as correct. I have learned - many many years ago, so it may already have changed - that .xinitrc is a SHELL SCRIPT that is executed on X startup. So all the rules for shell scripts do apply, such as declaring the interpreter with the #! special comment. Furthermore, .xinitrc serves as a kind of init process, so that the exec statement is needed to replace the .xinitrc process by the window manager. That's always been my understanding, but if you examine the startx script, you'll see otherwise. From xinit(1): If no specific client program is given on the command line, xinit will look for a file in the user's home directory called .xinitrc to run as a shell script to start up client programs ... ^ The interpretation being that .xinitrc can be an ordinary file, but should be written to follow certain syntax rules (not unlike /etc/rc.conf). An example to illustrate: $ echo 'var=Hello World; echo $var' filename $ sh filename Hello World Put simply, .xinitrc does not need a shebang line, and does not need to be executable. A simple 'exec ...' statement as the final line will suffice. -- George ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: SLIM and XFCE4
On Tue, 3 Nov 2009 03:25:07 -0800 (PST), Alexandre L. axel...@ymail.com wrote: .xinitrc (of my user) /usr/local/bin/startxfce4 Shouldn't it be #!/bin/sh exec /usr/local/bin/startxfce4 ? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
SLIM and XFCE4
Hi all, I want to use SLIM (Graphical login manager for X11) with XFCE4. After the installation, I have enabled it with the line slim_enable=YES in /etc/rc.conf When I log in (from SLIM), the language in XFCE is english. If I don't use SLIM, I log in on TTY and use %startx, XFCE language is in French (I have configured it). Here my config files : .dmrc (of my user) [Desktop] Session=Xfce4 Language=fr_FR.UTF-8 .login_conf (of my user) me:\ :charset=ISO-8859-15:\ :lang=fr_FR.ISO8859-15:\ .xinitrc (of my user) /usr/local/bin/startxfce4 I want to use SLIM to launch XFCE4 in French. Thanks for your help. Alexandre. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: SLIM and XFCE4
Alexandre L. wrote: Hi all, I want to use SLIM (Graphical login manager for X11) with XFCE4. After the installation, I have enabled it with the line slim_enable=YES in /etc/rc.conf When I log in (from SLIM), the language in XFCE is english. If I don't use SLIM, I log in on TTY and use %startx, XFCE language is in French (I have configured it). Here my config files : .dmrc (of my user) [Desktop] Session=Xfce4 Language=fr_FR.UTF-8 .login_conf (of my user) me:\ :charset=ISO-8859-15:\ :lang=fr_FR.ISO8859-15:\ .xinitrc (of my user) export LANG fr_FR.UTF-8 /usr/local/bin/startxfce4 I want to use SLIM to launch XFCE4 in French. -- Sphinx of black quartz judge my vow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org