Skip to content
Snippets Groups Projects
  • Deucе's avatar
    a8e1ff3e
    Use XDG_ENVIRONMENT_TYPE to switch to CLIPBOARD · a8e1ff3e
    Deucе authored
    It appears that XDG_ENVIRONMENT_TYPE will always equal "wayland"
    when XWayland is in use, so when we see that, switch to CLIPBOARD
    instead of PRIMARY.  This should fix WSL and ChromeOS, and be
    irritating on GNOME, so it's a win all around.
    a8e1ff3e
    History
    Use XDG_ENVIRONMENT_TYPE to switch to CLIPBOARD
    Deucе authored
    It appears that XDG_ENVIRONMENT_TYPE will always equal "wayland"
    when XWayland is in use, so when we see that, switch to CLIPBOARD
    instead of PRIMARY.  This should fix WSL and ChromeOS, and be
    irritating on GNOME, so it's a win all around.