unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22835: Autologin
@ 2016-02-27 23:14 Andreas Enge
  2016-02-28 10:32 ` Ricardo Wurmus
  2019-02-19 22:23 ` bug#22835: Close Andreas Enge
  0 siblings, 2 replies; 5+ messages in thread
From: Andreas Enge @ 2016-02-27 23:14 UTC (permalink / raw)
  To: 22835

Hello,

I am trying to create a configuration using slim-service with autologin.

Looking at the code in gnu/services/xorg.scm, I find the following definition:
(define* (slim-service #:key (slim slim)
                       (allow-empty-passwords? #t) auto-login?
                       (default-user "")
                       (theme %default-slim-theme)
                       (theme-name %default-slim-theme-name)
                       (xauth xauth) (shepherd shepherd) (bash bash)
                       (auto-login-session #~(string-append #$windowmaker
                                                            "/bin/wmaker"))
                       (startx (xorg-start-command)))

The parameter auto-login-session is not documented in guix.texi.

It also is a bit surprising; since I had added only xfce to my packages,
I expected this to start. Or is this impossible to realise?

Andreas

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22835: Autologin
  2016-02-27 23:14 bug#22835: Autologin Andreas Enge
@ 2016-02-28 10:32 ` Ricardo Wurmus
  2016-02-28 10:53   ` Andreas Enge
  2019-02-19 22:23 ` bug#22835: Close Andreas Enge
  1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2016-02-28 10:32 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 22835


Andreas Enge <andreas@enge.fr> writes:

> I am trying to create a configuration using slim-service with autologin.
>
> Looking at the code in gnu/services/xorg.scm, I find the following definition:
> (define* (slim-service #:key (slim slim)
>                        (allow-empty-passwords? #t) auto-login?
>                        (default-user "")
>                        (theme %default-slim-theme)
>                        (theme-name %default-slim-theme-name)
>                        (xauth xauth) (shepherd shepherd) (bash bash)
>                        (auto-login-session #~(string-append #$windowmaker
>                                                             "/bin/wmaker"))
>                        (startx (xorg-start-command)))
>
> The parameter auto-login-session is not documented in guix.texi.
>
> It also is a bit surprising; since I had added only xfce to my packages,
> I expected this to start. Or is this impossible to realise?

I have a working auto-login configuration using “modify-services”:

    (services (modify-services %desktop-services
                (slim-service-type config =>
                  (slim-configuration (inherit config)
                    (auto-login? #t)
                    (default-user "rekado")))))

~~ Ricardo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22835: Autologin
  2016-02-28 10:32 ` Ricardo Wurmus
@ 2016-02-28 10:53   ` Andreas Enge
  2016-02-28 15:55     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Enge @ 2016-02-28 10:53 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 22835

On Sun, Feb 28, 2016 at 11:32:46AM +0100, Ricardo Wurmus wrote:
> Andreas Enge <andreas@enge.fr> writes:
> > Looking at the code in gnu/services/xorg.scm, I find the following definition:
> > (define* (slim-service #:key (slim slim)
> >                        (allow-empty-passwords? #t) auto-login?
> >                        (default-user "")
> >                        (theme %default-slim-theme)
> >                        (theme-name %default-slim-theme-name)
> >                        (xauth xauth) (shepherd shepherd) (bash bash)
> >                        (auto-login-session #~(string-append #$windowmaker
> >                                                             "/bin/wmaker"))
> >                        (startx (xorg-start-command)))
> > It also is a bit surprising; since I had added only xfce to my packages,
> > I expected this to start. Or is this impossible to realise?
> 
> I have a working auto-login configuration using “modify-services”:

Sorry, I forgot to describe what "does not work" in my opinion. With
auto-login? set to #f, I get the login screen with a selection of sessions.
By default, xfce and ratpoison, since these are the packages present in the
default configuration. I deleted ratpoison from my configuration, so I can
only log in to xfce after typing user and password.

Now when I set auto-login? to #t, it does not log into xfce, but launches
the command given in auto-login-session. So I end up with windowmaker, which
did not even appear in the package list (but probably gets pulled in auto-
matically somehow). So at the least, the parameter needs to be documented.
I easily modified it to launch startxfce4 of the xfce package instead, and
ended up in xfce. Maybe this could be made the default choice anyway to
be consistent with our example desktop configuration?

More logically would be to log into one of the sessions that is also
proposed when auto-login? is set to #f. But this looks more complex, even
more so when there are several options present (which ones to choose?),
so maybe just documenting the command would be enough.

Andreas

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22835: Autologin
  2016-02-28 10:53   ` Andreas Enge
@ 2016-02-28 15:55     ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-02-28 15:55 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 22835

Side comment: could you change the subject to a phrase that reflects
what the bug is?  :-)

(Use the ‘retitle’ command of request@debbugs.gnu.org,
<http://debbugs.gnu.org/server-refcard.html>.)

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#22835: Close
  2016-02-27 23:14 bug#22835: Autologin Andreas Enge
  2016-02-28 10:32 ` Ricardo Wurmus
@ 2019-02-19 22:23 ` Andreas Enge
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Enge @ 2019-02-19 22:23 UTC (permalink / raw)
  To: 22835-done

This can probably be closed, as nobody really remembers any more
what it is about.

Andreas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-19 22:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-27 23:14 bug#22835: Autologin Andreas Enge
2016-02-28 10:32 ` Ricardo Wurmus
2016-02-28 10:53   ` Andreas Enge
2016-02-28 15:55     ` Ludovic Courtès
2019-02-19 22:23 ` bug#22835: Close Andreas Enge

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).