Setting default GDM session












0














I'm running Arch with Gnome3 and GDM 3.30.2. I'm in the process of switching to Sway, and am running into some configuration headaches:




  1. Sway sometimes fails to appear in the GDM session list.

  2. How to set Sway as the default session?


Question 1: Why is Sway sometimes omitted from the login session list?



As I understand it, GDM is native Wayland, and Wayland sessions are described in



ls /usr/share/wayland-sessions
> gnome.desktop
> sway.desktop


To the best of my knowledge, these files are configured correctly. For example, sway.desktop reads:



[Desktop Entry]
Name=Sway
Comment=SirCmpwn's Wayland window manager
Exec=/usr/bin/sway
Type=Application


So why doesn't Sway always appear in the GDM session list? I can't see any clear pattern as to when it does/doesn't appear, it just occasionally (1/3-4 times) doesn't appear. Is there anywhere else GDM looks when populating this list? I'm aware that there's also /etc/usr/xsessions, but it seems odd to put Sway here when it's a wayland session. Any tips for diagonising this very welcome!



Question 2: Setting Sway as the default session.



At the moment Gnome is the default session. A lot of googling has not turned up a clear answer for how I might set this. I found info on /.dmrc (no longer used in Gnome3), and instructions to modify settings in /etc/usr/xsessions... although this seems really backwards, as I'm entirely running Wayland.



How do I do this?










share|improve this question





























    0














    I'm running Arch with Gnome3 and GDM 3.30.2. I'm in the process of switching to Sway, and am running into some configuration headaches:




    1. Sway sometimes fails to appear in the GDM session list.

    2. How to set Sway as the default session?


    Question 1: Why is Sway sometimes omitted from the login session list?



    As I understand it, GDM is native Wayland, and Wayland sessions are described in



    ls /usr/share/wayland-sessions
    > gnome.desktop
    > sway.desktop


    To the best of my knowledge, these files are configured correctly. For example, sway.desktop reads:



    [Desktop Entry]
    Name=Sway
    Comment=SirCmpwn's Wayland window manager
    Exec=/usr/bin/sway
    Type=Application


    So why doesn't Sway always appear in the GDM session list? I can't see any clear pattern as to when it does/doesn't appear, it just occasionally (1/3-4 times) doesn't appear. Is there anywhere else GDM looks when populating this list? I'm aware that there's also /etc/usr/xsessions, but it seems odd to put Sway here when it's a wayland session. Any tips for diagonising this very welcome!



    Question 2: Setting Sway as the default session.



    At the moment Gnome is the default session. A lot of googling has not turned up a clear answer for how I might set this. I found info on /.dmrc (no longer used in Gnome3), and instructions to modify settings in /etc/usr/xsessions... although this seems really backwards, as I'm entirely running Wayland.



    How do I do this?










    share|improve this question



























      0












      0








      0







      I'm running Arch with Gnome3 and GDM 3.30.2. I'm in the process of switching to Sway, and am running into some configuration headaches:




      1. Sway sometimes fails to appear in the GDM session list.

      2. How to set Sway as the default session?


      Question 1: Why is Sway sometimes omitted from the login session list?



      As I understand it, GDM is native Wayland, and Wayland sessions are described in



      ls /usr/share/wayland-sessions
      > gnome.desktop
      > sway.desktop


      To the best of my knowledge, these files are configured correctly. For example, sway.desktop reads:



      [Desktop Entry]
      Name=Sway
      Comment=SirCmpwn's Wayland window manager
      Exec=/usr/bin/sway
      Type=Application


      So why doesn't Sway always appear in the GDM session list? I can't see any clear pattern as to when it does/doesn't appear, it just occasionally (1/3-4 times) doesn't appear. Is there anywhere else GDM looks when populating this list? I'm aware that there's also /etc/usr/xsessions, but it seems odd to put Sway here when it's a wayland session. Any tips for diagonising this very welcome!



      Question 2: Setting Sway as the default session.



      At the moment Gnome is the default session. A lot of googling has not turned up a clear answer for how I might set this. I found info on /.dmrc (no longer used in Gnome3), and instructions to modify settings in /etc/usr/xsessions... although this seems really backwards, as I'm entirely running Wayland.



      How do I do this?










      share|improve this question















      I'm running Arch with Gnome3 and GDM 3.30.2. I'm in the process of switching to Sway, and am running into some configuration headaches:




      1. Sway sometimes fails to appear in the GDM session list.

      2. How to set Sway as the default session?


      Question 1: Why is Sway sometimes omitted from the login session list?



      As I understand it, GDM is native Wayland, and Wayland sessions are described in



      ls /usr/share/wayland-sessions
      > gnome.desktop
      > sway.desktop


      To the best of my knowledge, these files are configured correctly. For example, sway.desktop reads:



      [Desktop Entry]
      Name=Sway
      Comment=SirCmpwn's Wayland window manager
      Exec=/usr/bin/sway
      Type=Application


      So why doesn't Sway always appear in the GDM session list? I can't see any clear pattern as to when it does/doesn't appear, it just occasionally (1/3-4 times) doesn't appear. Is there anywhere else GDM looks when populating this list? I'm aware that there's also /etc/usr/xsessions, but it seems odd to put Sway here when it's a wayland session. Any tips for diagonising this very welcome!



      Question 2: Setting Sway as the default session.



      At the moment Gnome is the default session. A lot of googling has not turned up a clear answer for how I might set this. I found info on /.dmrc (no longer used in Gnome3), and instructions to modify settings in /etc/usr/xsessions... although this seems really backwards, as I'm entirely running Wayland.



      How do I do this?







      gdm3 sway






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 9 at 23:33









      jasonwryan

      49k14134184




      49k14134184










      asked Dec 9 at 23:30









      oscarbranson

      1012




      1012



























          active

          oldest

          votes











          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%2f487019%2fsetting-default-gdm-session%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.





          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%2funix.stackexchange.com%2fquestions%2f487019%2fsetting-default-gdm-session%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

          Morgemoulin

          Scott Moir

          Souastre