You are not logged in.
[SELF SOLVED]
Turns out i was a dum dum and sddm only reads .xsession in x11 session and not in wayland sessions, i can't set the variables like that, it worked in a plasma x11 session and i realized the mistake, i will just make a startup script and have plasma and hyprland call it instead, i'd rather have a DE agnostic version, but also don't wanna mess with systemd that i think would be the only way.
[ORIGINAL POST]
I use hyprland with sddm as a login/session manager, i also have kde plasma as a "backup" for when i break hyprland, sddm still has the default settings it came with the kde installation.
I have a .xsession file in my home directory where i set environment variables as this file is meant to be loaded by sddm as the session starts, this is mentioned by the arch wiki.
It actually says it loads /usr/share/sddm/scripts/Xsession but looking at that file it loads the home .xsession itself
...
USERXSESSION=$HOME/.xsession
...
if [ -f "$USERXSESSION" ]; then
. "$USERXSESSION"
fi
...
however when i start my environment variables are not set, for now the only thing in that file is setting the path for my zsh config and a test variable for checking
export ZDOTDIR=$HOME/.config/zsh
export LOAD=session
echoing either of them after session starts leads to empty output as neither are set.
This behavior happens in either hyprland or kde
Last edited by Quollveth (2024-07-21 15:55:33)
Offline