Skip to content

Instantly share code, notes, and snippets.

@windoze
Created July 28, 2024 14:05
Show Gist options
  • Save windoze/7bc17395ff905848dfba50c651d897fa to your computer and use it in GitHub Desktop.
Save windoze/7bc17395ff905848dfba50c651d897fa to your computer and use it in GitHub Desktop.
Start Wayland Application on local monitor from remote session, e.g. SSH
#!/bin/bash
set -o allexport
XDG_RUNTIME_DIR="/run/user/$(id -u)"
eval "$(systemctl --user show-environment)"
exec "$@"
#################################################
# Usage:
# env-wrapper gedit
#################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment