diff --git a/wayland/sway/SlackBuild b/wayland/sway/SlackBuild index 0184a267..ccd7ffa5 100755 --- a/wayland/sway/SlackBuild +++ b/wayland/sway/SlackBuild @@ -79,18 +79,25 @@ set -e # set -x # echo "sway Starting: \$( date )" -# avoid wlr error -unset DISPLAY - # Uncomment if mouse pointer is invisible #export WLR_NO_HARDWARE_CURSORS=1 +unset QT_QPA_PLATFORM + +export QT_QPA_PLATFORMTHEME=qt5ct +export MOZ_ENABLE_WAYLAND=1 +export XDG_CURRENT_DESKTOP=sway +export XDG_PICTURES_DIR=\$HOME/.wallpapers + export SWAYSOCK=/run/user/\$(id -u)/sway-ipc.\$(id -u).\$(pgrep -x sway).sock export XDG_RUNTIME_DIR=/tmp/xdg-runtime-\$(id -u) mkdir -p \$XDG_RUNTIME_DIR chmod 0700 \$XDG_RUNTIME_DIR +# avoid wlr error +unset DISPLAY + exec dbus-run-session sway EOF chmod +x "$PKG$PREFIX/bin/start_sway.sh"