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)
Exemple #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)
Exemple #3
0
def clear_clipboard():
    """Clear clipboard."""
    process.execute_cmd('xsel -bc')
Exemple #4
0
def clear_primary():
    """Clear primary."""
    process.execute_cmd('xsel -pc')
Exemple #5
0
def clear_clipboard():
    """Clear clipboard."""
    process.execute_cmd('xsel -bc')
Exemple #6
0
def clear_primary():
    """Clear primary."""
    process.execute_cmd('xsel -pc')