(self)
Check for presence of xsel or xclip.
Check for presence of xsel or xclip.
Check for presence of xsel or xclip .
def __init__(self):
        """Check for presence of xsel or xclip."""
        if which('xclip'):
            self._command = 'xclip'
            self._notmouse = ['-selection', 'clipboard']
            self.ok = True
        elif which('xsel'):
            # note that xsl has a bug that makes chromium/atom hang on paste
            # https://github.com/electron/electron/issues/3116
            self._command = 'xsel'
            self._notmouse = ['-b']
            self.ok = True
        else:
            self.ok = False
def __init__ ( self ) : if which ( 'xclip' ) : self . _command = 'xclip' self . _notmouse = [ '-selection' , 'clipboard' ] self . ok = True elif which ( 'xsel' ) : # note that xsl has a bug that makes chromium/atom hang on paste # https://github.com/electron/electron/issues/3116 self . _command = 'xsel' self . _notmouse = [ '-b' ] self . ok = True else : self . ok = False