Skip to content

Instantly share code, notes, and snippets.

@therealromster
Created March 17, 2023 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therealromster/bfacef2450d54f11a7e753b7b1e4b7dd to your computer and use it in GitHub Desktop.
Save therealromster/bfacef2450d54f11a7e753b7b1e4b7dd to your computer and use it in GitHub Desktop.
/usr/bin/wayfire-session
#!/bin/bash
# output to syslog and stderr
# with PID and syslog identity 'wayfire'
exec 1> >(logger --id=$$ --stderr --tag wayfire) 2>&1
# if undefined, or empty, set to freedesktop specification defaults
[ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS="/usr/local/share:/usr/share"
# freedesktop specifications mandate that the definition
# of XDG_SESSION_TYPE should be respected
export XDG_SESSION_TYPE=wayland
export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland
export MOZ_ENABLE_WAYLAND=1
exec /usr/bin/wayfire "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment