LightDM: user-session doesn't work, nor do multiple sessions at start





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















On my media center (XUbuntu 14.10), I am trying to autostart Kodi in the focussed session and also start and autologin xfce4 in a second unfocussed session (I hope Steam In-Home Streaming doesn't need focus).



Below is my /etc/lightdm/lightdm.conf The autologin part works well However, the user-session seems to be completely ignored. I am always send to XFCE. Also a second session is not started.



The respective session files exist:



$ ls /usr/share/xsessions/
kodi.desktop xfce.desktop xubuntu.desktop


(xfce.desktop and xubuntu.desktop seem to be identical)



I can also start kodi-standalone by changing the session in the login screen manually. Any ideas?



[LightDM]
seats=Seat:0, Seat:1

[SeatDefaults]
autologin-user=kodi
autologin-user-timeout=0
user-session=kodi

[Seat:0]
# Media Center - focussed on boot
vt=7
# Make XBMC start on exit - there is no escape, ever.
greeter-hide-users=true
allow-guest=false
xserver-allow-tcp=false

[Seat:1]
vt=8
# Optional login on Ctrl+Alt+F8
user-session=xubuntu









share|improve this question





























    0















    On my media center (XUbuntu 14.10), I am trying to autostart Kodi in the focussed session and also start and autologin xfce4 in a second unfocussed session (I hope Steam In-Home Streaming doesn't need focus).



    Below is my /etc/lightdm/lightdm.conf The autologin part works well However, the user-session seems to be completely ignored. I am always send to XFCE. Also a second session is not started.



    The respective session files exist:



    $ ls /usr/share/xsessions/
    kodi.desktop xfce.desktop xubuntu.desktop


    (xfce.desktop and xubuntu.desktop seem to be identical)



    I can also start kodi-standalone by changing the session in the login screen manually. Any ideas?



    [LightDM]
    seats=Seat:0, Seat:1

    [SeatDefaults]
    autologin-user=kodi
    autologin-user-timeout=0
    user-session=kodi

    [Seat:0]
    # Media Center - focussed on boot
    vt=7
    # Make XBMC start on exit - there is no escape, ever.
    greeter-hide-users=true
    allow-guest=false
    xserver-allow-tcp=false

    [Seat:1]
    vt=8
    # Optional login on Ctrl+Alt+F8
    user-session=xubuntu









    share|improve this question

























      0












      0








      0








      On my media center (XUbuntu 14.10), I am trying to autostart Kodi in the focussed session and also start and autologin xfce4 in a second unfocussed session (I hope Steam In-Home Streaming doesn't need focus).



      Below is my /etc/lightdm/lightdm.conf The autologin part works well However, the user-session seems to be completely ignored. I am always send to XFCE. Also a second session is not started.



      The respective session files exist:



      $ ls /usr/share/xsessions/
      kodi.desktop xfce.desktop xubuntu.desktop


      (xfce.desktop and xubuntu.desktop seem to be identical)



      I can also start kodi-standalone by changing the session in the login screen manually. Any ideas?



      [LightDM]
      seats=Seat:0, Seat:1

      [SeatDefaults]
      autologin-user=kodi
      autologin-user-timeout=0
      user-session=kodi

      [Seat:0]
      # Media Center - focussed on boot
      vt=7
      # Make XBMC start on exit - there is no escape, ever.
      greeter-hide-users=true
      allow-guest=false
      xserver-allow-tcp=false

      [Seat:1]
      vt=8
      # Optional login on Ctrl+Alt+F8
      user-session=xubuntu









      share|improve this question














      On my media center (XUbuntu 14.10), I am trying to autostart Kodi in the focussed session and also start and autologin xfce4 in a second unfocussed session (I hope Steam In-Home Streaming doesn't need focus).



      Below is my /etc/lightdm/lightdm.conf The autologin part works well However, the user-session seems to be completely ignored. I am always send to XFCE. Also a second session is not started.



      The respective session files exist:



      $ ls /usr/share/xsessions/
      kodi.desktop xfce.desktop xubuntu.desktop


      (xfce.desktop and xubuntu.desktop seem to be identical)



      I can also start kodi-standalone by changing the session in the login screen manually. Any ideas?



      [LightDM]
      seats=Seat:0, Seat:1

      [SeatDefaults]
      autologin-user=kodi
      autologin-user-timeout=0
      user-session=kodi

      [Seat:0]
      # Media Center - focussed on boot
      vt=7
      # Make XBMC start on exit - there is no escape, ever.
      greeter-hide-users=true
      allow-guest=false
      xserver-allow-tcp=false

      [Seat:1]
      vt=8
      # Optional login on Ctrl+Alt+F8
      user-session=xubuntu






      xubuntu lightdm 14.10 auto-login kodi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 8 '15 at 15:02









      mcandrilmcandril

      12615




      12615






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Same for me, except that it is blackbox for me instead of xfce.



          I checked the lightdm log files and I have no clue where it still thinks to start up blackbox instead of kodi as everything looks correctly set.



          What I did was at the end a dirty hack.
          I symlinked /usr/share/xsessions/blackbox.desktop to /usr/share/xsessions/kodi.desktop



          Kodi starts up finally.






          share|improve this answer
























          • Doesn't your kodi start up at all or just not as autostart? What Linux are you using? Any idea where to file the bug report? LightDM?

            – mcandril
            Feb 9 '15 at 21:09



















          0














          I am using Ubuntu 18.04 LTS and got the same problem.



          Except regular lightdm config files I also found these files:




          • $HOME/.dmrc

          • /var/lib/AccountsService/users/<yourname>

          • /var/cache/lightdm/dmrc/<yourname>.dmrc


          Changing /var/lib/AccountsService/users/<yourname> and replacing the default value ubuntu with your session name seems to be the solution.
          However I am not sure is there a better way to modify this config rather than changing the file directly.



          I also manually modified .dmrc and that cache file (needs root permission to go into the folder). However maybe a reboot will update them automatically as they look like just cache.






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f571368%2flightdm-user-session-doesnt-work-nor-do-multiple-sessions-at-start%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Same for me, except that it is blackbox for me instead of xfce.



            I checked the lightdm log files and I have no clue where it still thinks to start up blackbox instead of kodi as everything looks correctly set.



            What I did was at the end a dirty hack.
            I symlinked /usr/share/xsessions/blackbox.desktop to /usr/share/xsessions/kodi.desktop



            Kodi starts up finally.






            share|improve this answer
























            • Doesn't your kodi start up at all or just not as autostart? What Linux are you using? Any idea where to file the bug report? LightDM?

              – mcandril
              Feb 9 '15 at 21:09
















            0














            Same for me, except that it is blackbox for me instead of xfce.



            I checked the lightdm log files and I have no clue where it still thinks to start up blackbox instead of kodi as everything looks correctly set.



            What I did was at the end a dirty hack.
            I symlinked /usr/share/xsessions/blackbox.desktop to /usr/share/xsessions/kodi.desktop



            Kodi starts up finally.






            share|improve this answer
























            • Doesn't your kodi start up at all or just not as autostart? What Linux are you using? Any idea where to file the bug report? LightDM?

              – mcandril
              Feb 9 '15 at 21:09














            0












            0








            0







            Same for me, except that it is blackbox for me instead of xfce.



            I checked the lightdm log files and I have no clue where it still thinks to start up blackbox instead of kodi as everything looks correctly set.



            What I did was at the end a dirty hack.
            I symlinked /usr/share/xsessions/blackbox.desktop to /usr/share/xsessions/kodi.desktop



            Kodi starts up finally.






            share|improve this answer













            Same for me, except that it is blackbox for me instead of xfce.



            I checked the lightdm log files and I have no clue where it still thinks to start up blackbox instead of kodi as everything looks correctly set.



            What I did was at the end a dirty hack.
            I symlinked /usr/share/xsessions/blackbox.desktop to /usr/share/xsessions/kodi.desktop



            Kodi starts up finally.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 8 '15 at 13:39









            DanielDaniel

            1




            1













            • Doesn't your kodi start up at all or just not as autostart? What Linux are you using? Any idea where to file the bug report? LightDM?

              – mcandril
              Feb 9 '15 at 21:09



















            • Doesn't your kodi start up at all or just not as autostart? What Linux are you using? Any idea where to file the bug report? LightDM?

              – mcandril
              Feb 9 '15 at 21:09

















            Doesn't your kodi start up at all or just not as autostart? What Linux are you using? Any idea where to file the bug report? LightDM?

            – mcandril
            Feb 9 '15 at 21:09





            Doesn't your kodi start up at all or just not as autostart? What Linux are you using? Any idea where to file the bug report? LightDM?

            – mcandril
            Feb 9 '15 at 21:09













            0














            I am using Ubuntu 18.04 LTS and got the same problem.



            Except regular lightdm config files I also found these files:




            • $HOME/.dmrc

            • /var/lib/AccountsService/users/<yourname>

            • /var/cache/lightdm/dmrc/<yourname>.dmrc


            Changing /var/lib/AccountsService/users/<yourname> and replacing the default value ubuntu with your session name seems to be the solution.
            However I am not sure is there a better way to modify this config rather than changing the file directly.



            I also manually modified .dmrc and that cache file (needs root permission to go into the folder). However maybe a reboot will update them automatically as they look like just cache.






            share|improve this answer




























              0














              I am using Ubuntu 18.04 LTS and got the same problem.



              Except regular lightdm config files I also found these files:




              • $HOME/.dmrc

              • /var/lib/AccountsService/users/<yourname>

              • /var/cache/lightdm/dmrc/<yourname>.dmrc


              Changing /var/lib/AccountsService/users/<yourname> and replacing the default value ubuntu with your session name seems to be the solution.
              However I am not sure is there a better way to modify this config rather than changing the file directly.



              I also manually modified .dmrc and that cache file (needs root permission to go into the folder). However maybe a reboot will update them automatically as they look like just cache.






              share|improve this answer


























                0












                0








                0







                I am using Ubuntu 18.04 LTS and got the same problem.



                Except regular lightdm config files I also found these files:




                • $HOME/.dmrc

                • /var/lib/AccountsService/users/<yourname>

                • /var/cache/lightdm/dmrc/<yourname>.dmrc


                Changing /var/lib/AccountsService/users/<yourname> and replacing the default value ubuntu with your session name seems to be the solution.
                However I am not sure is there a better way to modify this config rather than changing the file directly.



                I also manually modified .dmrc and that cache file (needs root permission to go into the folder). However maybe a reboot will update them automatically as they look like just cache.






                share|improve this answer













                I am using Ubuntu 18.04 LTS and got the same problem.



                Except regular lightdm config files I also found these files:




                • $HOME/.dmrc

                • /var/lib/AccountsService/users/<yourname>

                • /var/cache/lightdm/dmrc/<yourname>.dmrc


                Changing /var/lib/AccountsService/users/<yourname> and replacing the default value ubuntu with your session name seems to be the solution.
                However I am not sure is there a better way to modify this config rather than changing the file directly.



                I also manually modified .dmrc and that cache file (needs root permission to go into the folder). However maybe a reboot will update them automatically as they look like just cache.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 22 at 14:03









                x1a0x1a0

                1011




                1011






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f571368%2flightdm-user-session-doesnt-work-nor-do-multiple-sessions-at-start%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    數位音樂下載

                    When can things happen in Etherscan, such as the picture below?

                    格利澤436b