Example #1
0
def test_execute_cmd():
    bak_primary = cb.read_primary()
    #
    text = 'arbitrary text'
    cb.to_primary(text)
    assert cb.read_primary() == text
    process.execute_cmd('xsel -pc')    # clear primary
    assert cb.read_primary() == ''
    #
    cb.to_primary(bak_primary)
Example #2
0
def test_execute_cmd():
    bak_primary = cb.read_primary()
    #
    text = 'arbitrary text'
    cb.to_primary(text)
    assert cb.read_primary() == text
    process.execute_cmd('xsel -pc')  # clear primary
    assert cb.read_primary() == ''
    #
    cb.to_primary(bak_primary)
Example #3
0
def clear_clipboard():
    """Clear clipboard."""
    process.execute_cmd('xsel -bc')
Example #4
0
def clear_primary():
    """Clear primary."""
    process.execute_cmd('xsel -pc')
Example #5
0
def clear_clipboard():
    """Clear clipboard."""
    process.execute_cmd('xsel -bc')
Example #6
0
def clear_primary():
    """Clear primary."""
    process.execute_cmd('xsel -pc')