summaryrefslogtreecommitdiffstats
path: root/fb.py
diff options
context:
space:
mode:
Diffstat (limited to 'fb.py')
-rwxr-xr-xfb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fb.py b/fb.py
index 8f24013..15d92d2 100755
--- a/fb.py
+++ b/fb.py
@@ -401,6 +401,8 @@ class ConfigParser:
self.config["clipboard_cmd"] = "xclip"
if os.uname()[0] == "Darwin":
self.config["clipboard_cmd"] = "pbcopy"
+ elif os.environ.get('XDG_SESSION_TYPE') == 'wayland':
+ self.config["clipboard_cmd"] = "wl-copy"
self.config["apikey_file"] = os.path.join(xdg.BaseDirectory.xdg_config_home, "fb-client/apikey")
self._parse(file, ignoreMissing=ignoreMissing)