Why does `startx /usr/bin/unity` not load my desktop settings?











up vote
2
down vote

favorite












I am trying to open a second X session with unity on display :1.



For this to achieve I open another terminal (e.g. tty 6) with Ctrl + Alt +6 and login as the user whose desktop session I want to start. When I start the X session with unity as a client on display :1, unity loads but does not adhere to my desktop settings.



This is how I start the session:



$ startx /usr/bin/unity -- :1


This does not work properly:




  • Startup applications don't start.

  • dconf settings are not read (e.g. org.gnome.desktop.interface.text-scaling-factor)

  • The language of the desktop is not correct (This user's desktop should be English while my main user has a German desktop).

  • ... maybe other stuff I did not notice.


I also tried to start X with



$ startx -- :1


This shows the correct desktop wallpaper but does not show anything else (no xterm, no panels, no dash, ...). But Ctrl + Alt +T opens a decorated terminal and I can start unity. That loads unity with almost everything I need. But the language still is German.



I also tried appending unity to ~/.xinitrc but that did not change anything.



Can someone point out my mistakes? An optimal solution for me would be to being able to start a second unity session with startx -- :1.










share|improve this question






















  • Oh. By accident I just stumbled upon the solution for my problem: Obviously I just need to use the user switcher in the panel and lightdm opens the session of the second user on display :1. This does not answer my questions but solves my problem.
    – justfortherec
    Jul 14 '13 at 19:50















up vote
2
down vote

favorite












I am trying to open a second X session with unity on display :1.



For this to achieve I open another terminal (e.g. tty 6) with Ctrl + Alt +6 and login as the user whose desktop session I want to start. When I start the X session with unity as a client on display :1, unity loads but does not adhere to my desktop settings.



This is how I start the session:



$ startx /usr/bin/unity -- :1


This does not work properly:




  • Startup applications don't start.

  • dconf settings are not read (e.g. org.gnome.desktop.interface.text-scaling-factor)

  • The language of the desktop is not correct (This user's desktop should be English while my main user has a German desktop).

  • ... maybe other stuff I did not notice.


I also tried to start X with



$ startx -- :1


This shows the correct desktop wallpaper but does not show anything else (no xterm, no panels, no dash, ...). But Ctrl + Alt +T opens a decorated terminal and I can start unity. That loads unity with almost everything I need. But the language still is German.



I also tried appending unity to ~/.xinitrc but that did not change anything.



Can someone point out my mistakes? An optimal solution for me would be to being able to start a second unity session with startx -- :1.










share|improve this question






















  • Oh. By accident I just stumbled upon the solution for my problem: Obviously I just need to use the user switcher in the panel and lightdm opens the session of the second user on display :1. This does not answer my questions but solves my problem.
    – justfortherec
    Jul 14 '13 at 19:50













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I am trying to open a second X session with unity on display :1.



For this to achieve I open another terminal (e.g. tty 6) with Ctrl + Alt +6 and login as the user whose desktop session I want to start. When I start the X session with unity as a client on display :1, unity loads but does not adhere to my desktop settings.



This is how I start the session:



$ startx /usr/bin/unity -- :1


This does not work properly:




  • Startup applications don't start.

  • dconf settings are not read (e.g. org.gnome.desktop.interface.text-scaling-factor)

  • The language of the desktop is not correct (This user's desktop should be English while my main user has a German desktop).

  • ... maybe other stuff I did not notice.


I also tried to start X with



$ startx -- :1


This shows the correct desktop wallpaper but does not show anything else (no xterm, no panels, no dash, ...). But Ctrl + Alt +T opens a decorated terminal and I can start unity. That loads unity with almost everything I need. But the language still is German.



I also tried appending unity to ~/.xinitrc but that did not change anything.



Can someone point out my mistakes? An optimal solution for me would be to being able to start a second unity session with startx -- :1.










share|improve this question













I am trying to open a second X session with unity on display :1.



For this to achieve I open another terminal (e.g. tty 6) with Ctrl + Alt +6 and login as the user whose desktop session I want to start. When I start the X session with unity as a client on display :1, unity loads but does not adhere to my desktop settings.



This is how I start the session:



$ startx /usr/bin/unity -- :1


This does not work properly:




  • Startup applications don't start.

  • dconf settings are not read (e.g. org.gnome.desktop.interface.text-scaling-factor)

  • The language of the desktop is not correct (This user's desktop should be English while my main user has a German desktop).

  • ... maybe other stuff I did not notice.


I also tried to start X with



$ startx -- :1


This shows the correct desktop wallpaper but does not show anything else (no xterm, no panels, no dash, ...). But Ctrl + Alt +T opens a decorated terminal and I can start unity. That loads unity with almost everything I need. But the language still is German.



I also tried appending unity to ~/.xinitrc but that did not change anything.



Can someone point out my mistakes? An optimal solution for me would be to being able to start a second unity session with startx -- :1.







unity xorg settings tty






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 14 '13 at 19:45









justfortherec

284414




284414












  • Oh. By accident I just stumbled upon the solution for my problem: Obviously I just need to use the user switcher in the panel and lightdm opens the session of the second user on display :1. This does not answer my questions but solves my problem.
    – justfortherec
    Jul 14 '13 at 19:50


















  • Oh. By accident I just stumbled upon the solution for my problem: Obviously I just need to use the user switcher in the panel and lightdm opens the session of the second user on display :1. This does not answer my questions but solves my problem.
    – justfortherec
    Jul 14 '13 at 19:50
















Oh. By accident I just stumbled upon the solution for my problem: Obviously I just need to use the user switcher in the panel and lightdm opens the session of the second user on display :1. This does not answer my questions but solves my problem.
– justfortherec
Jul 14 '13 at 19:50




Oh. By accident I just stumbled upon the solution for my problem: Obviously I just need to use the user switcher in the panel and lightdm opens the session of the second user on display :1. This does not answer my questions but solves my problem.
– justfortherec
Jul 14 '13 at 19:50










2 Answers
2






active

oldest

votes

















up vote
0
down vote













If you want to manually start an xsession like that, you should rather do something like gnome-session --session=ubuntu. gnome-session will load required components such as gnome-settings-daemon which in turn will configure your stuff.



Sessions are stored in /usr/share/gnome-session/sessions/. You'll see things like "gnome.session" and "ubuntu.session". You use the file name without the ".session" extension in the --session parameter.



Likewise, if you want to properly shut down your desktop session, you can kill that instance of gnome-session.






share|improve this answer

















  • 1




    Thanks. Where would I do that? In the tty? Can I pass an argument which display should be used? I can't find how to do that. If I run startx -- :1 first, open a terminal and start gnome-session --session=ubuntu I get an error message: "Failed to aquire org.gnome.SessionManager".
    – justfortherec
    Jul 15 '13 at 6:52


















up vote
0
down vote













I'm using following method for tty:



cp ~/.xinitrc ~/.xinitrc.old # if they exist
echo "exec unity" > ~/.xinitrc # or "exec gnome-session --session=ubuntu"
sudo startx -- :1


And i have full-featured session Desktop Environment.
BUT, if you go to another tty, session will be broken.






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',
    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%2f320042%2fwhy-does-startx-usr-bin-unity-not-load-my-desktop-settings%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








    up vote
    0
    down vote













    If you want to manually start an xsession like that, you should rather do something like gnome-session --session=ubuntu. gnome-session will load required components such as gnome-settings-daemon which in turn will configure your stuff.



    Sessions are stored in /usr/share/gnome-session/sessions/. You'll see things like "gnome.session" and "ubuntu.session". You use the file name without the ".session" extension in the --session parameter.



    Likewise, if you want to properly shut down your desktop session, you can kill that instance of gnome-session.






    share|improve this answer

















    • 1




      Thanks. Where would I do that? In the tty? Can I pass an argument which display should be used? I can't find how to do that. If I run startx -- :1 first, open a terminal and start gnome-session --session=ubuntu I get an error message: "Failed to aquire org.gnome.SessionManager".
      – justfortherec
      Jul 15 '13 at 6:52















    up vote
    0
    down vote













    If you want to manually start an xsession like that, you should rather do something like gnome-session --session=ubuntu. gnome-session will load required components such as gnome-settings-daemon which in turn will configure your stuff.



    Sessions are stored in /usr/share/gnome-session/sessions/. You'll see things like "gnome.session" and "ubuntu.session". You use the file name without the ".session" extension in the --session parameter.



    Likewise, if you want to properly shut down your desktop session, you can kill that instance of gnome-session.






    share|improve this answer

















    • 1




      Thanks. Where would I do that? In the tty? Can I pass an argument which display should be used? I can't find how to do that. If I run startx -- :1 first, open a terminal and start gnome-session --session=ubuntu I get an error message: "Failed to aquire org.gnome.SessionManager".
      – justfortherec
      Jul 15 '13 at 6:52













    up vote
    0
    down vote










    up vote
    0
    down vote









    If you want to manually start an xsession like that, you should rather do something like gnome-session --session=ubuntu. gnome-session will load required components such as gnome-settings-daemon which in turn will configure your stuff.



    Sessions are stored in /usr/share/gnome-session/sessions/. You'll see things like "gnome.session" and "ubuntu.session". You use the file name without the ".session" extension in the --session parameter.



    Likewise, if you want to properly shut down your desktop session, you can kill that instance of gnome-session.






    share|improve this answer












    If you want to manually start an xsession like that, you should rather do something like gnome-session --session=ubuntu. gnome-session will load required components such as gnome-settings-daemon which in turn will configure your stuff.



    Sessions are stored in /usr/share/gnome-session/sessions/. You'll see things like "gnome.session" and "ubuntu.session". You use the file name without the ".session" extension in the --session parameter.



    Likewise, if you want to properly shut down your desktop session, you can kill that instance of gnome-session.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jul 14 '13 at 22:32









    Jo-Erlend Schinstad

    26.3k556108




    26.3k556108








    • 1




      Thanks. Where would I do that? In the tty? Can I pass an argument which display should be used? I can't find how to do that. If I run startx -- :1 first, open a terminal and start gnome-session --session=ubuntu I get an error message: "Failed to aquire org.gnome.SessionManager".
      – justfortherec
      Jul 15 '13 at 6:52














    • 1




      Thanks. Where would I do that? In the tty? Can I pass an argument which display should be used? I can't find how to do that. If I run startx -- :1 first, open a terminal and start gnome-session --session=ubuntu I get an error message: "Failed to aquire org.gnome.SessionManager".
      – justfortherec
      Jul 15 '13 at 6:52








    1




    1




    Thanks. Where would I do that? In the tty? Can I pass an argument which display should be used? I can't find how to do that. If I run startx -- :1 first, open a terminal and start gnome-session --session=ubuntu I get an error message: "Failed to aquire org.gnome.SessionManager".
    – justfortherec
    Jul 15 '13 at 6:52




    Thanks. Where would I do that? In the tty? Can I pass an argument which display should be used? I can't find how to do that. If I run startx -- :1 first, open a terminal and start gnome-session --session=ubuntu I get an error message: "Failed to aquire org.gnome.SessionManager".
    – justfortherec
    Jul 15 '13 at 6:52












    up vote
    0
    down vote













    I'm using following method for tty:



    cp ~/.xinitrc ~/.xinitrc.old # if they exist
    echo "exec unity" > ~/.xinitrc # or "exec gnome-session --session=ubuntu"
    sudo startx -- :1


    And i have full-featured session Desktop Environment.
    BUT, if you go to another tty, session will be broken.






    share|improve this answer

























      up vote
      0
      down vote













      I'm using following method for tty:



      cp ~/.xinitrc ~/.xinitrc.old # if they exist
      echo "exec unity" > ~/.xinitrc # or "exec gnome-session --session=ubuntu"
      sudo startx -- :1


      And i have full-featured session Desktop Environment.
      BUT, if you go to another tty, session will be broken.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I'm using following method for tty:



        cp ~/.xinitrc ~/.xinitrc.old # if they exist
        echo "exec unity" > ~/.xinitrc # or "exec gnome-session --session=ubuntu"
        sudo startx -- :1


        And i have full-featured session Desktop Environment.
        BUT, if you go to another tty, session will be broken.






        share|improve this answer












        I'm using following method for tty:



        cp ~/.xinitrc ~/.xinitrc.old # if they exist
        echo "exec unity" > ~/.xinitrc # or "exec gnome-session --session=ubuntu"
        sudo startx -- :1


        And i have full-featured session Desktop Environment.
        BUT, if you go to another tty, session will be broken.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 7 '15 at 11:21









        Alexander

        113




        113






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f320042%2fwhy-does-startx-usr-bin-unity-not-load-my-desktop-settings%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?