Re: [gdm-list] problem with autologin on multiple displays




Jeff:

cc:ing gdm-list gnome org, since I think people will be happy to
hear how to hack GDM to support autologin on multiple displays.
Many people have asked for this feature.

Commenting out the call to gdm_first_login in daemon.c seems to work for me.  I'm not sure what side effects it might have on others or why auto-login is currently limited this way but I'm happy it works:

    } else if (d->type == TYPE_STATIC &&
/*             gdm_first_login && */
               ! ve_string_empty (ParsedAutomaticLogin) &&
               strcmp (ParsedAutomaticLogin, gdm_root_user ()) != 0) {
            gdm_first_login = FALSE;

Let me know if I can do anything else to help or test.  --Jeff

Great, glad to hear you were able to get GDM working as you want.

Note comment #25 of the bug I pointed you to before.  This comment
has a patch that makes timed login work for more displays than
just the first login and adds a new configuration option
TimedLoginFirstDisplay.

   http://bugzilla.gnome.org/show_bug.cgi?id=336174

It might be cool to update this patch so there is also an
AutomaticLoginFirstDisplay, and then GDM users could configure
whether they want timed/autologin to work on all displays just
by editing the GDM configuration rather than having to hack
the code.

So if you'ld be interested in reworking the patch a bit to make
it work for both autologin and timedlogin via configuration
options, then we could get this patch upstream.  Note the GDM 2.16
and 2.19 code is quite a bit different so the patch will likely
require a bit of rework to get working in GDM 2.19.

Brian


----- "Brian Cameron" <Brian Cameron Sun COM> wrote:
Jeff:

Yes, it is a known issue that GDM does not support autologin except
for
the first display started in the configuration file.  Timed login
also
doesn't work this way.  It would be a nice enhancement to make the
code support this.

Refer:

    http://bugzilla.gnome.org/show_bug.cgi?id=336174

I'd be happy to accept a patch that makes auto/timed login work for
multiple displays.

Brian


I'm using Ubuntu Feisty as the basis for a carpc.  I have one
display in the front for control, and two in the back so my kids can
watch or play what they want on long trips.  Everything is working
great, except I can't get more than one user to autologin.  Here is
what I've tried:
/etc/X11/gdm/gdm.conf-custom

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=/usr/sbin/gdm-autologin|

[security]
AllowRemoteAutoLogin=true
DisallowTCP=false

My custom shell script gdm-autologin which returns a user based on
DISPLAY:
#!/bin/sh

case $DISPLAY in
  ":0")
    echo "user1"
    ;;
  ":1")
    echo "user2"
    ;;
  ":2")
    echo "user3"
    ;;
esac

User1 on display :0 automatically logs in as desired, but user2 and
user3 don't.  I've tried various options to no avail so I'm hoping
someone here can help.  Thanks!
_______________________________________________
gdm-list mailing list
gdm-list gnome org
http://mail.gnome.org/mailman/listinfo/gdm-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]