Just another Reddit refugee

  • 2 Posts
  • 29 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle



  • For i3, the desktop file is like this (present in /usr/share/xsessions)

    [Desktop Entry]
    Name=i3
    Comment=improved dynamic tiling window manager
    Exec=i3
    TryExec=i3
    Type=Application
    X-LightDM-DesktopName=i3
    DesktopNames=i3
    Keywords=tiling;wm;windowmanager;window;manager;
    

    And sway (present in /usr/share/wayland-sessions)

    [Desktop Entry]
    Version=1.0
    Name=Sway
    Comment=An i3-compatible Wayland compositor
    Exec=/usr/bin/sway
    Type=Application
    DesktopNames=sway
    

    Gdm probably sums up all the DE from both the wayland and x11 sessions.

    There are some files & directories in /etc/gdm3 but I’m too lazy to go through all of them

    Init       PostSession  Prime     config-error-dialog.sh  greeter.dconf-defaults
    PostLogin  PreSession   PrimeOff  custom.conf             Xsession
    

    Thanks for your help.




  • As what user are you executing all these ‘groups’ commands?

    I’m using my default user (xavier666)

    The “normal” user should not be in the root group, and root should not be in the normal user’s group.

    I just made the user a root user/system administrator during the Ubuntu installation process, which is very standard.

    Have you done other things beside the “fix” you mentioned?

    AFAIK, I haven’t done any changes. This is a single user system. I checked the contents of /etc/sudoers and these are the only other lines of significance. I didn’t change them (Why are there % signs?)

    # User privilege specification
    root    ALL=(ALL:ALL) ALL
    xavier666    ALL=(ALL:ALL) ALL
    
    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    
    # Allow members of group sudo to execute any command
    %sudo   ALL=(ALL:ALL) ALL
    

    That “fix” from your op, btw, looks totally valid to me.

    It’s working fine also. However, I believe in “don’t touch what ain’t broke” and “why isn’t it documented?”

    However, in my installations I have never touched the sudoer file to make the ONLY user part of sudo group post install. Either I’m dumb or I’m launching sway/wayland with improper permissions.

    I also can’t find anything on the arch wiki which deals with this.

    Why isn’t the same problem happening on i3?





  • these are all text files

    Yeah, it just calls the executable mentioned in the .desktop file (/usr/bin/sway). It should not be a GDM, issue, right?

    I also checked that I don’t have seatd installed, which is a “minimal user, seat and session management daemon” mentioned in arch wiki (https://wiki.archlinux.org/title/Sway). Could it be related?

    Sorry, I have to go now. More tonight, if you want.

    No hurry, the fix I am using is not causing issue. I just want to know why this is happening. This is a fun research problem.

    PS: I checked Google and I didn’t find anyone who has faced the same issue.



  • but with the way the sway session is started, as opposed to the i3 session. We need more info on this.

    I’m using gdm to start sway. I’m using the laptop’s built-in fingerprint scanner to unlock (Not sure if it matters). I saved the fingerprint in the Gnome session long back.

    gdm probably looks inside /usr/share/wayland-sessions and finds sway.desktop and uses it to launch Sway.

    I’ve tried to keep things as vanilla as possible.

    Isn’t i3 Xorg only, and sway wayland only?

    Correct.

    Maybe wayland is launched using restrictive set of permissions.




  • I once installed Bazzite on my PC. I am an sway user/addict. So thought about installing sway on Bazzite.

    Below is my journey


    Let me try to download and compile it.

    Downloaded but it won’t compile.

    The libraries/dependancies are not installed. Here, try installing the packages via brew.

    Nope, some of them are available and some are not on Brew.

    Now what do I do? Okay, there is something called distrobox where I can install whatever I want.

    Looks like I have to learn distrobox. Wait, sway is not a simple application, it’s a full blown window manager. Even if it compiles, will it work?

    Most of the people online (Discord) told me the process won’t be very pretty.

    Do I want to invest another week experimenting with distrobox?

    Nope, installed Nobara the next day and I’m happy.


    Disclaimer: Bazzite is a fantastic distro and it’s powering my RoG Ally. Atomic distros are fantastic for the niche they fill.