Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: lightdm login leads to a wrong environment

  1. #1
    Join Date
    Jan 2013
    Beans
    2

    lightdm login leads to a wrong environment

    This login problem appeared this morning.

    My favorite environment is gnome-classic (with effects). I can't use it any longer !
    When I choose the environment on the login screen, here is what happens:

    When I choose===================> it logs
    --------------.................................................. .... ---------------
    Ubuntu======================> Unity 2D ou 3D (depends on ?)
    Ubuntu 2D===================> Unity 2D
    Gnome Classic (without effects) => OK. Gnome Classic (without effects)
    Gnome Classic================> Unity 2D

    weird !

    I then created another user and I can log in normally for this user, but it is impossible to do it for my main user.

    Here are the results of commands:

    ls /usr/share/xsessions
    -----------------------
    gnome-classic.desktop gnome-fallback.desktop ubuntu-2d.desktop
    gnome.desktop gnome-shell.desktop ubuntu.desktop

    cat /etc/lightdm/lightdm.conf
    -----------------------------
    [SeatDefaults]
    user-session=ubuntu
    greeter-session=unity-greeter
    autologin-user=

    cat ~/.dmrc
    ------
    [Desktop]
    Session=gnome-fallback

    cat OtherUser/.dmrc
    ---------------
    [Desktop]
    Session=gnome-classic

    cat '/var/lib/AccountsService/users/boss'
    -----------------------------------------
    [User]
    XSession=gnome-fallback
    XKeyboardLayouts=
    Background=/usr/share/backgrounds/Twilight_Frost_by_Phil_Jackson.jpg

    I tried to replace "gnome-fallback" by "gnome-classic" in ~/.dmrc and '/var/lib/AccountsService/users/boss', but it returns to gnome-fallback.

    What can I do ?
    Last edited by Seagul; January 15th, 2013 at 11:45 PM.

  2. #2
    Join Date
    Dec 2007
    Beans
    458

    Re: lightdm login leads to a wrong environment

    I have an almost identical problem, except that everything ends in Gnome Classic (without effects). This happens in versions 12.4 and 12.10.

    lightdm.conf settings seem to make no difference.

    One clue, though. I select a desktop, but the setting doesn't stick. If I go back and check the selection before entering a password, it defaults to Ubuntu, no matter what I have selected. The only exception is if I am already logged on, in which case it defaults to Gnome Classic (without effects), which is what I am already logged on to.

  3. #3
    Join Date
    Dec 2007
    Beans
    458

    Re: lightdm login leads to a wrong environment

    This is bug 1052453, which is supposed to be fixed but evidently is not.

  4. #4
    Join Date
    Sep 2012
    Location
    12o4/14o4
    Beans
    Hidden!

    Re: lightdm login leads to a wrong environment

    @Seagul

    Sure sounds like you been hit with the bug, but I notice that /etc/lightdm/lightdm.conf is set to user-session=ubuntu.

    Won't make any difference if its the bug.

    I would think you could install "gdm" and use it as a work-a-round untill this bug in lightdm gets fixed.

    Code:
    sudo apt-get install gdm
    It should ask you during or after the install if you want gdm or lightdm as default.

  5. #5
    Join Date
    Dec 2007
    Beans
    458

    Re: lightdm login leads to a wrong environment

    (Slightly off-topic post--can be ignored)
    Note to self on changing the background image: If you do happen to have a working version of unity-greeter, it's controlled by something like unity-greeter.conf. There are lots of nicer pictures you can use in /usr/share/backgrounds. Of course, you can use your own too.

    EDIT:
    But it turns out that that's not the file. It's not lightdm-gtk-greeter-ubuntu.conf either.

    The default ugly background is 'warty-final-ubuntu.png'. Searching the disc for the text 'warty-final-ubuntu' shows 14 files that refer to that file or 'warty-final-ubuntu.jpg', so it's probably one of those. Some seem more likely than others. It may be hard-coded. I'd sure like to replace that image, but....


    EDIT again:
    OK, here's what works.

    If the background file is specified as 'warty-final-ubuntu.jpg', some of the software (which may or may not be running) redirects it to 'warty-final-ubuntu.png' file, as a workaround. So it's a little complicated to get this correct. But there's a simple way to trick it. Why fight it?

    There's only one warty-final-ubuntu.png, and it's in /usr/share/backgrounds. Just replace the file with a file of your choice. Make sure it's a .png file. It's not necessary that the image size match the monitor size.
    Last edited by VanillaMozilla; January 22nd, 2013 at 04:09 PM.

  6. #6
    Join Date
    Dec 2007
    Beans
    458

    Re: lightdm login leads to a wrong environment

    Let us know if the gdm works.

  7. #7
    Join Date
    Dec 2007
    Beans
    458

    Re: lightdm login leads to a wrong environment

    Here's how you can get gdm (warning: here be dragons):
    If you already have gdm installed, as you likely do, just
    sudo dpkg-reconfigure lightdm
    (or is that gksudo?) to choose which one to use.

    Choosing gdm left me with a nice logon screen with a background but no way to log on. You know, those nice little graphical tools are so easy to use, but it's so difficult to undo the damage if you can't log in to an xwindows system.


    Recovery (what I did, anyway):
    1. <Ctrl><Alt><F2> or something to get a bare terminal session.
    2. startx gets you a blank xwindows session
    3. <ctrl><alt>t to get a terminal (or whatever key combination you hope will work)
    4. <alt><tab> to find the terminal
    5. Now you can
    sudo dpgk-reconfigure gdm
    again to undo the mess (set it back to lightdm.
    6. Terminate the session however you can manage to do it, and reboot.

    Good luck.
    Last edited by VanillaMozilla; January 22nd, 2013 at 04:13 PM.

  8. #8
    Join Date
    Sep 2012
    Location
    12o4/14o4
    Beans
    Hidden!

    Re: lightdm login leads to a wrong environment

    @VanillaMozilla

    The OP of this thread has not replied for six days.

    Why do you rant on ??

    If you can't figure out how to use gdm maybe you need to start your own

  9. #9
    Join Date
    Dec 2007
    Beans
    458

    Re: lightdm login leads to a wrong environment

    This is not a rant. I have the same problem, and I would be remiss if I did not document my experience with it and how to avoid the pitfalls and repair the damage.

    I was fully expecting a follow-up from the OP, reporting the results, but so far we have heard nothing. Meanwhile, I still have the same problem, and I see no reason to fragment the discussion with another thread.

    As for not being able to "figure out" how to "use" gdm, according to your directions there's not supposed to be anything to figure out. You didn't say anything about how to configure it. A lot of people will already have gdm installed. That's where I started from.

    If you know of documentation that is sufficiently detailed to prevent disaster, please feel free to add that information.
    Last edited by VanillaMozilla; January 22nd, 2013 at 03:22 PM.

  10. #10
    Join Date
    Sep 2012
    Location
    12o4/14o4
    Beans
    Hidden!

    Re: lightdm login leads to a wrong environment

    OP = 1 post

    VanillaMozilla = 6 post

    I see no reason to fragment the discussion
    You haven't, you hijacked it

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •