SLIM and XFCE4

View: New views
7 Messages — Rating Filter:   Alert me  

SLIM and XFCE4

by Alexandre-53 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: SLIM and XFCE4

by Volodymyr Kostyrko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: SLIM and XFCE4

by Polytropon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 3 Nov 2009 03:25:07 -0800 (PST), "Alexandre L." <axelbsd@...> 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@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: SLIM and XFCE4

by Alexandre-53 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

mmm. I don't know.
But with this config file, XFCE4 launch is OK (or seems OK).
I have found this line in the handbook at the XFCE section http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html

--- En date de : Mer 4.11.09, Polytropon <freebsd@...> a écrit :

> De: Polytropon <freebsd@...>
> Objet: Re: SLIM and XFCE4
> À: "Alexandre L." <axelbsd@...>
> Cc: "FreeBSD Question" <freebsd-questions@...>
> Date: Mercredi 4 Novembre 2009, 23h16
> On Tue, 3 Nov 2009 03:25:07 -0800
> (PST), "Alexandre L." <axelbsd@...>
> 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@...
> mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."
>



_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: SLIM and XFCE4

by Alexandre-53 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Volodymyr for the tips.
I have hade the following lines to my .xinitrc file and it's now OK : XFCE is in French language.
Thanks again.

export LC_ALL=fr_FR.UTF-8
export LANGUAGE=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
/usr/local/bin/startxfce4

Alexandre.


--- En date de : Mar 3.11.09, Volodymyr Kostyrko <c.kworr@...> a écrit :

> De: Volodymyr Kostyrko <c.kworr@...>
> Objet: Re: SLIM and XFCE4
> À: freebsd-questions@...
> Date: Mardi 3 Novembre 2009, 20h36
> 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@...
> mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."
>



_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: SLIM and XFCE4

by Polytropon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 4 Nov 2009 23:01:19 -0800 (PST), "Alexandre L." <axelbsd@...> 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@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: SLIM and XFCE4

by George Davidovich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."