Can't start Plasma from SDDM anymore, only from CLI

This is really weird. It happened for the first time this morning even though I didn’t install any updates or change anything yesterday as far as I can recall. I was on Fedora 40, just now I upgraded to 41 but the issue persists. I’m on a laptop with Intel+NVIDIA graphics.

When I log in through SDDM, I just get a black screen and nothing happens.
I can switch to a TTY and log in to the console there, and running startplasma-wayland from there works just fine.
Although when I restart SDDM from the TTY and try to log in again, the system freezes completely.

The weird part is that there is absolutely nothing interesting in the systemd journal either.
It says
sddm-helper[3446]: Starting Wayland user session: "/etc/sddm/wayland-session" "/usr/libexec/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland"
But after that there are no signs of Plasma ever actually starting, nor are there any error messages.

And again, I can launch Plasma from a TTY with startplasma-wayland.

Okay so I still don’t quite know what went wrong but it had something to do with fish (the shell that I use).
I found that out by changing my users shell to bash which made me able to log in again. So I went back to fish and deleted my fish config files (which were barely changed from the default) as well as .profile (which had nothing of value in it anyways). Don’t know what was wrong before but it is fixed now.

your problem my be with powerdevil 6.2.3

try powerdevil 6.1.5

Well I already fixed it as I said and there were no errors so I don’t think it was powerdevil.
I think I did mess with my PATH variable a few days ago, thought I undid all that but maybe not. So it would make sense that deleting .profile and my fish config fixed it.