Skip to content

Commit eaea679

Browse files
exprez135firecat53
authored andcommitted
Fixes macOS piping error by forcing urwid to use selectors.SelectSelector
fixes: #155 see: urwid/urwid#1025 piping with urlscan was broken on macOS due to issues with selectors.KqueueSelector, which is the default on macOS. This overrides the default on macOS to fix the problem.
1 parent 44c0151 commit eaea679

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

urlscan/urlchoose.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
if platform == 'darwin':
3737
COPY_COMMANDS = ('pbcopy',)
3838
COPY_COMMANDS_PRIMARY = ('pbcopy',)
39+
import selectors
40+
selectors.DefaultSelector = selectors.SelectSelector
3941
elif 'WAYLAND_DISPLAY' in os.environ:
4042
COPY_COMMANDS = ('wl-copy',)
4143
COPY_COMMANDS_PRIMARY = ('wl-copy --primary',)

0 commit comments

Comments
 (0)