diff --git a/xpra/client/mixins/clipboard.py b/xpra/client/mixins/clipboard.py index 47e64d776a..310fe9e1a9 100644 --- a/xpra/client/mixins/clipboard.py +++ b/xpra/client/mixins/clipboard.py @@ -124,13 +124,13 @@ def parse_server_capabilities(self, c: typedict) -> bool: log.warn("Warning: incompatible clipboard direction settings") log.warn(" server setting: %s, client setting: %s", self.server_clipboard_direction, self.client_clipboard_direction) - clipboards: Sequence[str] = () + all_clipboards: Sequence[str] = () try: from xpra.clipboard.core import ALL_CLIPBOARDS - clipboards = ALL_CLIPBOARDS + all_clipboards = ALL_CLIPBOARDS except ImportError: log("no clipboard core!") - self.server_clipboards = c.strtupleget("clipboards", clipboards) + self.server_clipboards = c.strtupleget("clipboards", all_clipboards) log("server clipboard: supported=%s, direction=%s", self.server_clipboard, self.server_clipboard_direction) log("client clipboard: supported=%s, direction=%s", @@ -138,7 +138,7 @@ def parse_server_capabilities(self, c: typedict) -> bool: self.clipboard_enabled = self.client_supports_clipboard and self.server_clipboard self.server_clipboard_greedy = c.boolget("clipboard.greedy") self.server_clipboard_want_targets = c.boolget("clipboard.want_targets") - self.server_clipboard_selections = c.strtupleget("clipboard.selections", CLIPBOARDS) + self.server_clipboard_selections = c.strtupleget("clipboard.selections", all_clipboards) self.server_clipboard_preferred_targets = c.strtupleget("clipboard.preferred-targets", ()) log("server clipboard: greedy=%s, want_targets=%s, selections=%s", self.server_clipboard_greedy, self.server_clipboard_want_targets, self.server_clipboard_selections)