ss64-password-generators icon indicating copy to clipboard operation
ss64-password-generators copied to clipboard

(x)Ubuntu 14.04 incompatibility [gclip]

Open hack-wizard opened this issue 9 years ago • 1 comments

gclip is not available in xUbuntu 14.04 standard repositories in any form.

Suggestion: use xsel -ib instead, as it is a more basic yet functionally equivalent CLI program that works with the underlying X clipboard selection.

hack-wizard avatar Dec 30 '15 04:12 hack-wizard

I modified the function ss64pwd_to_clipboard() on my install to use xsel, and it's working great, here's the code:

ss64pwd_to_clipboard() {
    if (($1==1)) && which xsel &> /dev/null
    then
        xsel -ib # consumes stdin
        echo '(in clipboard)'
    else
        cat  # consumes stdin
        echo # newline before message
        echo '(install xsel if you want it in the cliboard automatically)'
    fi
}

hack-wizard avatar Jan 01 '16 05:01 hack-wizard