As the title states whenever I try to login and start the desktop environment (xfce4 and dwm) I get kicked back to the login screen with no error message. Beforehand I was messing around with configuring dwm. I’ve tried updating through the tty and deleting dwmblocks (which is what I was messing with before all this)

Here’s the output when running startxfce4:

usr/bin/startxfce4: Starting X server

(EE)
Fatal server error:
(EE) Server is already active for display 0
                if this server is no longer running, remove /tmp/.X0-lock and start again.
(EE)
(EE)
Please consult the X.org foundation support at http://wiki.x.org for help.
(EE)
Authorization required, but no authorization protocol specified

xinit: giving up
xinit: unable to connect to C server: Resource temporarily unavailable
xinit: server error
  • christopher@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    On my computer,

    ps -ef | grep Xorg
    
    

    gives

    root 642 632 0 06:09 tty7 00:03:26 /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

    showing that the X server is running. I suspect that when you run the above ps command, that you will get no output, which shows that the X server is not running on your computer. In that case, you need to remove the lock that is preventing it from starting:

    rm /tmp/.X0-lock

    • Mandrew002OP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I do actually get output from that command and I tried removing that file but whenever I restarted it was just created again

    • Mandrew002OP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      I fixed it by uninstalling the .Xauthority file from the tty and rebooting