swayos / swayos.github.io

A productivity-oriented minimalist and super elegant desktop layer over unix-like operating systems
https://swayos.github.io
133 stars 12 forks source link

Fix xdg-desktop-portal-wlr not activating correctly #33

Closed rik1599 closed 9 months ago

rik1599 commented 10 months ago

See here

Visone-Selektah commented 9 months ago

This PR just fixed that problem on systemd distros. This is a way to fix that problem in any system : Create an env file in ~/.config/sway, export all the envs you need, then source that file in the sway config. Other way could be using a wrapper script to execute sway with all those envs

#! /bin/sh

export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway
export DESKTOP_SESSION=sway
export XKB_DEFAULT_LAYOUT=es
export LIBSEAT_BACKEND=seatd
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export QT_QPA_PLATFORM=wayland
export MOZ_ENABLE_WAYLAND=1
export CLUTTER_BACKEND=wayland
export SDL_VIDEODRIVER=wayland
export SDL_AUDIODRIVER=pulseaudio
export WLR_DRM_DEVICES=/dev/dri/card0
export OZONE_PLATFORM=wayland
export WLR_NO_HARDWARE_CURSORS=1
exec sway