mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Add Wayland COPY_CMD to default config (#203)
This commit is contained in:
parent
8ad6d919d7
commit
4190da13f8
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ else:
|
|||
DEFAULT_OPEN = "open {file_path}"
|
||||
|
||||
if _os_name == _linux:
|
||||
COPY_CMD = "xclip -selection c"
|
||||
if os.environ.get("WAYLAND_DISPLAY"):
|
||||
COPY_CMD = "wl-copy"
|
||||
else:
|
||||
COPY_CMD = "xclip -selection c"
|
||||
else:
|
||||
COPY_CMD = "pbcopy"
|
||||
|
||||
|
|
Loading…
Reference in a new issue