How to configure gdm for login into a sway session?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have installed sway window manager on Fedora 27.
The system uses gdm as its login manager.



But gdm does not provide sway for selection as the login session.
Only Gnome, wich is also installed on the system, is shown.
I did not had this problem with i3wm, when I tried it.



  1. Is sway compatible with gdm?

  2. Does gdm support wayland or only Xorg?

  3. How to configure gdm for sway, or which login manager is prefered for usage with sway?






share|improve this question
























    up vote
    1
    down vote

    favorite












    I have installed sway window manager on Fedora 27.
    The system uses gdm as its login manager.



    But gdm does not provide sway for selection as the login session.
    Only Gnome, wich is also installed on the system, is shown.
    I did not had this problem with i3wm, when I tried it.



    1. Is sway compatible with gdm?

    2. Does gdm support wayland or only Xorg?

    3. How to configure gdm for sway, or which login manager is prefered for usage with sway?






    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have installed sway window manager on Fedora 27.
      The system uses gdm as its login manager.



      But gdm does not provide sway for selection as the login session.
      Only Gnome, wich is also installed on the system, is shown.
      I did not had this problem with i3wm, when I tried it.



      1. Is sway compatible with gdm?

      2. Does gdm support wayland or only Xorg?

      3. How to configure gdm for sway, or which login manager is prefered for usage with sway?






      share|improve this question












      I have installed sway window manager on Fedora 27.
      The system uses gdm as its login manager.



      But gdm does not provide sway for selection as the login session.
      Only Gnome, wich is also installed on the system, is shown.
      I did not had this problem with i3wm, when I tried it.



      1. Is sway compatible with gdm?

      2. Does gdm support wayland or only Xorg?

      3. How to configure gdm for sway, or which login manager is prefered for usage with sway?








      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 22 '17 at 19:36









      Simon Schürg

      1086




      1086




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted











          Is sway compatible with gdm?




          yes




          Does gdm support wayland or only Xorg?




          gdm3 itself runs on wayland. It supports both wayland and Xorg sessions.




          How to configure gdm for sway?




          You are missing an entry in /usr/share/wayland-sessions. This folder contains wayland desktop session entries for display managers in general. (Respectivly, X desktop session entries are located in /usr/share/xsessions).



          Create a file /usr/share/wayland-sessions/sway.desktop with this content:



          [Desktop Entry]
          Version=1.0
          Name=Sway
          Comment=Sway - i3 on Wayland
          # Please choose matching path
          Exec=/usr/bin/sway
          #Exec=/usr/local/bin/sway
          Type=Application


          This entry was missing on my system, too. I've compiled sway from source; wayland-session/xsession entries are rather part of ready-to-use packages. Please make sure the Exec line matches your path to executeable sway.






          share|improve this answer


















          • 1




            File should be located in /usr/share/wayland-sessions rather, since Sway is Wayland based compositor.
            – MeanEYE
            Feb 21 at 18:02










          • @MeanEYE Thank you, I've edited the answer to correct this.
            – mviereck
            Feb 21 at 18:13










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f412585%2fhow-to-configure-gdm-for-login-into-a-sway-session%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted











          Is sway compatible with gdm?




          yes




          Does gdm support wayland or only Xorg?




          gdm3 itself runs on wayland. It supports both wayland and Xorg sessions.




          How to configure gdm for sway?




          You are missing an entry in /usr/share/wayland-sessions. This folder contains wayland desktop session entries for display managers in general. (Respectivly, X desktop session entries are located in /usr/share/xsessions).



          Create a file /usr/share/wayland-sessions/sway.desktop with this content:



          [Desktop Entry]
          Version=1.0
          Name=Sway
          Comment=Sway - i3 on Wayland
          # Please choose matching path
          Exec=/usr/bin/sway
          #Exec=/usr/local/bin/sway
          Type=Application


          This entry was missing on my system, too. I've compiled sway from source; wayland-session/xsession entries are rather part of ready-to-use packages. Please make sure the Exec line matches your path to executeable sway.






          share|improve this answer


















          • 1




            File should be located in /usr/share/wayland-sessions rather, since Sway is Wayland based compositor.
            – MeanEYE
            Feb 21 at 18:02










          • @MeanEYE Thank you, I've edited the answer to correct this.
            – mviereck
            Feb 21 at 18:13














          up vote
          2
          down vote



          accepted











          Is sway compatible with gdm?




          yes




          Does gdm support wayland or only Xorg?




          gdm3 itself runs on wayland. It supports both wayland and Xorg sessions.




          How to configure gdm for sway?




          You are missing an entry in /usr/share/wayland-sessions. This folder contains wayland desktop session entries for display managers in general. (Respectivly, X desktop session entries are located in /usr/share/xsessions).



          Create a file /usr/share/wayland-sessions/sway.desktop with this content:



          [Desktop Entry]
          Version=1.0
          Name=Sway
          Comment=Sway - i3 on Wayland
          # Please choose matching path
          Exec=/usr/bin/sway
          #Exec=/usr/local/bin/sway
          Type=Application


          This entry was missing on my system, too. I've compiled sway from source; wayland-session/xsession entries are rather part of ready-to-use packages. Please make sure the Exec line matches your path to executeable sway.






          share|improve this answer


















          • 1




            File should be located in /usr/share/wayland-sessions rather, since Sway is Wayland based compositor.
            – MeanEYE
            Feb 21 at 18:02










          • @MeanEYE Thank you, I've edited the answer to correct this.
            – mviereck
            Feb 21 at 18:13












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted







          Is sway compatible with gdm?




          yes




          Does gdm support wayland or only Xorg?




          gdm3 itself runs on wayland. It supports both wayland and Xorg sessions.




          How to configure gdm for sway?




          You are missing an entry in /usr/share/wayland-sessions. This folder contains wayland desktop session entries for display managers in general. (Respectivly, X desktop session entries are located in /usr/share/xsessions).



          Create a file /usr/share/wayland-sessions/sway.desktop with this content:



          [Desktop Entry]
          Version=1.0
          Name=Sway
          Comment=Sway - i3 on Wayland
          # Please choose matching path
          Exec=/usr/bin/sway
          #Exec=/usr/local/bin/sway
          Type=Application


          This entry was missing on my system, too. I've compiled sway from source; wayland-session/xsession entries are rather part of ready-to-use packages. Please make sure the Exec line matches your path to executeable sway.






          share|improve this answer















          Is sway compatible with gdm?




          yes




          Does gdm support wayland or only Xorg?




          gdm3 itself runs on wayland. It supports both wayland and Xorg sessions.




          How to configure gdm for sway?




          You are missing an entry in /usr/share/wayland-sessions. This folder contains wayland desktop session entries for display managers in general. (Respectivly, X desktop session entries are located in /usr/share/xsessions).



          Create a file /usr/share/wayland-sessions/sway.desktop with this content:



          [Desktop Entry]
          Version=1.0
          Name=Sway
          Comment=Sway - i3 on Wayland
          # Please choose matching path
          Exec=/usr/bin/sway
          #Exec=/usr/local/bin/sway
          Type=Application


          This entry was missing on my system, too. I've compiled sway from source; wayland-session/xsession entries are rather part of ready-to-use packages. Please make sure the Exec line matches your path to executeable sway.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 21 at 18:12

























          answered Dec 26 '17 at 20:31









          mviereck

          1,1171410




          1,1171410







          • 1




            File should be located in /usr/share/wayland-sessions rather, since Sway is Wayland based compositor.
            – MeanEYE
            Feb 21 at 18:02










          • @MeanEYE Thank you, I've edited the answer to correct this.
            – mviereck
            Feb 21 at 18:13












          • 1




            File should be located in /usr/share/wayland-sessions rather, since Sway is Wayland based compositor.
            – MeanEYE
            Feb 21 at 18:02










          • @MeanEYE Thank you, I've edited the answer to correct this.
            – mviereck
            Feb 21 at 18:13







          1




          1




          File should be located in /usr/share/wayland-sessions rather, since Sway is Wayland based compositor.
          – MeanEYE
          Feb 21 at 18:02




          File should be located in /usr/share/wayland-sessions rather, since Sway is Wayland based compositor.
          – MeanEYE
          Feb 21 at 18:02












          @MeanEYE Thank you, I've edited the answer to correct this.
          – mviereck
          Feb 21 at 18:13




          @MeanEYE Thank you, I've edited the answer to correct this.
          – mviereck
          Feb 21 at 18:13












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412585%2fhow-to-configure-gdm-for-login-into-a-sway-session%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay