Just another Reddit refugee

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

help-circle






  • You can have a perfect distro on a USB which boots into Linux automatically when inserted into your PC and it preserves all your files and favorites. Still it will hardly increase the market share by 1 or 2%. It’s because a super minority of people will bother to get the USB drive.

    The core issue we have to understand is “availability of preinstalled Linux on PCs in brick and mortar shops”. Till this is solved, we won’t get market share. The only reason people are using Linux on their SteamDeck is availability.




  • Issue resolved!

    It was swhkd. Thank you very much for your insight and extremely detailed response!

    $ ls -l $(which swhkd)
    -rwsr-xr-x 1 root root 2583192 Mar 10 17:16 /usr/bin/swhkd
    

    Since we know what’s causing it, can you make a “guesstimate” of what it’s doing? Why are other applications are getting infected by it? And why is a keybind manager affecting permissions?

    I will raise an issue on their github. The project is already looking for maintainers.



  • $ which sway
    /usr/bin/sway
    
    $ sway --version
    sway version 1.9
    
    $ file $(which sway)
    /usr/bin/sway: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=70fe358f7e410f618ad8a9ce0e573ed6826b2e75, for GNU/Linux 3.2.0, stripped
    
    $ ls -l $(which sway)
    -rwxr-xr-x 1 root root 600352 Apr  1  2024 /usr/bin/sway
    

    id pre and post login

    uid=1000(xavier666) gid=1000(xavier666) groups=1000(xavier666),0(root)
    ---------------
    uid=1000(xavier666) gid=1000(xavier666) groups=1000(xavier666),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),120(lpadmin),132(lxd),133(sambashare)
    

    A funny thing; I think this has nothing to do with gdm. I have gdm disabled now and launching sway directly from the terminal and the issue still persists.

    The problem goes away (xavier666 becomes part of sudo like expected) when I type exec su - xavier666 for that terminal session only. If I open a new terminal, it problem reappears. I’ll just in case check if zsh/omyzsh is doing something funny.









  • 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.