33 lines
1.0 KiB
Bash
Executable File
33 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Debug script for SDDM and Sway session issues
|
|
echo "=== SDDM and Sway Debug Information ==="
|
|
|
|
echo -e "\n1. Checking if Sway is installed:"
|
|
which sway 2>/dev/null || echo "Sway not found in PATH"
|
|
|
|
echo -e "\n2. Checking Sway desktop files:"
|
|
find /nix/store -name "sway.desktop" 2>/dev/null | head -3
|
|
|
|
echo -e "\n3. Checking current SDDM configuration:"
|
|
if [ -f /etc/sddm.conf ]; then
|
|
cat /etc/sddm.conf
|
|
else
|
|
echo "SDDM config file not found"
|
|
fi
|
|
|
|
echo -e "\n4. Checking available sessions:"
|
|
ls -la /usr/share/wayland-sessions/ 2>/dev/null || echo "No wayland-sessions directory found"
|
|
ls -la /usr/share/xsessions/ 2>/dev/null || echo "No xsessions directory found"
|
|
|
|
echo -e "\n5. Checking if SDDM service is running:"
|
|
systemctl status sddm 2>/dev/null || echo "Cannot check SDDM status"
|
|
|
|
echo -e "\n6. Checking environment variables:"
|
|
echo "XDG_SESSION_TYPE: $XDG_SESSION_TYPE"
|
|
echo "XDG_CURRENT_DESKTOP: $XDG_CURRENT_DESKTOP"
|
|
|
|
echo -e "\n7. Testing Sway startup:"
|
|
echo "Run this command to test Sway:"
|
|
echo "sway --debug 2>&1 | head -10"
|