Skip to content

Commit

Permalink
fix: clipboard in macos
Browse files Browse the repository at this point in the history
  • Loading branch information
meronogbai authored and firecat53 committed Jul 5, 2024
1 parent 1ec81ec commit 56b54dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion urlscan/urlchoose.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import json
import os
from os.path import dirname, exists, expanduser
from sys import platform
import re
import shlex
import subprocess
Expand All @@ -34,7 +35,10 @@
import urwid.raw_display


if 'WAYLAND_DISPLAY' in os.environ:
if platform == 'darwin':
COPY_COMMANDS = ('pbcopy',)
COPY_COMMANDS_PRIMARY = ('pbcopy',)
elif 'WAYLAND_DISPLAY' in os.environ:
COPY_COMMANDS = ('wl-copy',)
COPY_COMMANDS_PRIMARY = ('wl-copy --primary',)
else:
Expand Down

0 comments on commit 56b54dd

Please sign in to comment.