So I’m working under the assumption that I’m not actually derailing the thread since my issue is very similar to OPs. @ricklinux if you feel otherwise I can start a new one, but I’m going to lay out my troubleshooting so far.
I followed rick’s link and ran dex -ad -e KDE
which gave the output:
Executing command: /usr/lib/baloo_file
Executing command: eos-update-notifier -init
Executing command: /usr/bin/firewall-applet
Executing command: /usr/lib/geoclue-2.0/demos/agent
Executing command: gmenudbusmenuproxy
Executing command: kaccess
Executing command: klipper
Executing command: /usr/lib/kdeconnectd
Executing command: /usr/bin/plasmashell
Executing command: /usr/lib/pam_kwallet_init
Executing command: /usr/lib/polkit-kde-authentication-agent-1
Executing command: /usr/lib/org_kde_powerdevil
Executing command: sh /usr/share/endeavouros/scripts/wallpaper-once
Executing command: sh /usr/share/endeavouros/scripts/welcome --startdelay=3
Executing command: /usr/lib/xapps/xapp-sn-watcher
Executing command: xembedsniproxy
dex -ad -e sway
yields:
Executing command: eos-update-notifier -init
Executing command: /usr/bin/firewall-applet
Executing command: /usr/lib/geoclue-2.0/demos/agent
Executing command: nm-applet
Executing command: /usr/lib/kdeconnectd
Executing command: /usr/lib/pam_kwallet_init
Executing command: system-config-printer-applet
Executing command: sh /usr/share/endeavouros/scripts/wallpaper-once
Executing command: sh /usr/share/endeavouros/scripts/welcome --startdelay=3
Executing command: /usr/lib/xapps/xapp-sn-watcher
To my eye I don’t see anything that would result in all my Plasma virtual desktops starting on my main monitor or the taskbar splitting the middle of the screen under Sway, but I don’t know enough about the guts of either UI to say for certain.
So following your lead, petsam, I started looking into the $XDG_CURRENT_DESKTOP
env variable.
Under Plasma my $XDG_CURRENT_DESKTOP
is, predictably, set to KDE
.
Under Sway it was not set to anything, and wasn’t included if I ran systemctl --user show-environment
under Sway. According to this Arch wiki entry Sway provides the configuration file /etc/sway/config.d/50-systemd-user.conf
that, among other things, should set the env variable to sway
. In my case it did not, so I changed the line dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
to dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway
and included it in my sway configuration file.
The output of systemctl --user show-environment
under Sway is now:
[aristocrat@the-tower ~]$ systemctl --user show-environment
BROWSER=firefox
EDITOR=nano
HOME=/home/aristocrat
LANG=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_TIME=en_US.UTF-8
LOGNAME=aristocrat
MAIL=/var/spool/mail/aristocrat
PATH=/usr/local/bin:/usr/bin
SHELL=/bin/bash
SYSTEMD_EXEC_PID=2050
USER=aristocrat
XDG_RUNTIME_DIR=/run/user/1000
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DISPLAY=:1
SWAYSOCK=/run/user/1000/sway-ipc.1000.69224.sock
WAYLAND_DISPLAY=wayland-1
XDG_CURRENT_DESKTOP=sway
So I now have the correct environment variable, but the problem remains. I suspect it’s too far down on the list to be processed early enough on login to fix the issue. I’m now thoroughly stumped.