Start graphical user interface using startx and display manager












1















Can someone tell me what differents between starting graphical user interface using startx command (which xinitrc contains exec gnome-session or exec xfce4-session) and using an display manager? And can you explain me what the session in gnome-session or xfce4-session mean?










share|improve this question





























    1















    Can someone tell me what differents between starting graphical user interface using startx command (which xinitrc contains exec gnome-session or exec xfce4-session) and using an display manager? And can you explain me what the session in gnome-session or xfce4-session mean?










    share|improve this question



























      1












      1








      1








      Can someone tell me what differents between starting graphical user interface using startx command (which xinitrc contains exec gnome-session or exec xfce4-session) and using an display manager? And can you explain me what the session in gnome-session or xfce4-session mean?










      share|improve this question
















      Can someone tell me what differents between starting graphical user interface using startx command (which xinitrc contains exec gnome-session or exec xfce4-session) and using an display manager? And can you explain me what the session in gnome-session or xfce4-session mean?







      linux arch-linux desktop-environment display-manager






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 13 at 21:04









      Rui F Ribeiro

      39.5k1479133




      39.5k1479133










      asked Jan 20 '15 at 3:47









      Bình NguyênBình Nguyên

      15019




      15019






















          1 Answer
          1






          active

          oldest

          votes


















          1














          This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc you indicate what to run when program startx (or xinit) starts, which launches X11. I think that session just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session in /usr/local/bin/startkde). So simply .xinitrc is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec is optional in this case, since e.g. gnome-session does not finish until you logout from GNOME).



          When you enable display manager it can read available sessions from /usr/share/xsessions/ directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.



          Guide to X11/Starting sessions |
          Display managers arch wiki |
          X terminology






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f179981%2fstart-graphical-user-interface-using-startx-and-display-manager%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc you indicate what to run when program startx (or xinit) starts, which launches X11. I think that session just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session in /usr/local/bin/startkde). So simply .xinitrc is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec is optional in this case, since e.g. gnome-session does not finish until you logout from GNOME).



            When you enable display manager it can read available sessions from /usr/share/xsessions/ directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.



            Guide to X11/Starting sessions |
            Display managers arch wiki |
            X terminology






            share|improve this answer




























              1














              This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc you indicate what to run when program startx (or xinit) starts, which launches X11. I think that session just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session in /usr/local/bin/startkde). So simply .xinitrc is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec is optional in this case, since e.g. gnome-session does not finish until you logout from GNOME).



              When you enable display manager it can read available sessions from /usr/share/xsessions/ directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.



              Guide to X11/Starting sessions |
              Display managers arch wiki |
              X terminology






              share|improve this answer


























                1












                1








                1







                This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc you indicate what to run when program startx (or xinit) starts, which launches X11. I think that session just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session in /usr/local/bin/startkde). So simply .xinitrc is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec is optional in this case, since e.g. gnome-session does not finish until you logout from GNOME).



                When you enable display manager it can read available sessions from /usr/share/xsessions/ directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.



                Guide to X11/Starting sessions |
                Display managers arch wiki |
                X terminology






                share|improve this answer













                This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc you indicate what to run when program startx (or xinit) starts, which launches X11. I think that session just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session in /usr/local/bin/startkde). So simply .xinitrc is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec is optional in this case, since e.g. gnome-session does not finish until you logout from GNOME).



                When you enable display manager it can read available sessions from /usr/share/xsessions/ directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.



                Guide to X11/Starting sessions |
                Display managers arch wiki |
                X terminology







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 20 '15 at 8:59









                kirill-akirill-a

                2,15011021




                2,15011021






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f179981%2fstart-graphical-user-interface-using-startx-and-display-manager%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 make a Squid Proxy server?

                    Is this a new Fibonacci Identity?

                    Touch on Surface Book