Bug 250902 - www/googler: drop or make conditional xclip dependency
Summary: www/googler: drop or make conditional xclip dependency
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Nicola Vitale
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2020-11-06 13:21 UTC by Jan Beich
Modified: 2020-11-06 13:21 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (nivit)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2020-11-06 13:21:04 UTC
I'm on Wayland, so use wl-copy instead of xclip. googler supports more tools:

     if shutil.which('xsel') is not None:
         copier_params = ['xsel', '-b', '-i']
     elif shutil.which('xclip') is not None:
         copier_params = ['xclip', '-selection', 'clipboard']
     elif shutil.which('wl-copy') is not None:
         copier_params = ['wl-copy']
     elif shutil.which('termux-clipboard-set') is not None:
         copier_params = ['termux-clipboard-set']