ClipIt - Ignore Password Managers?

Post Reply
Message
Author
diddyonlinux
Posts: 1
Joined: Wed Jul 25, 2018 3:08 pm

ClipIt - Ignore Password Managers?

#1 Post by diddyonlinux »

Is there anyway to force ClipIt to ignore password copied from password managers?

In browser extension lastpass as an example or a local install of keepass, bitwarden(didn't find this package it is in Manjaro package system) or lastpass(not sure if this is possible - it was in MacOS)

User avatar
fehlix
Developer
Posts: 10370
Joined: Wed Apr 11, 2018 5:09 pm

Re: ClipIt - Ignore Password Managers?

#2 Post by fehlix »

diddyonlinux wrote: Wed Jul 25, 2018 5:05 pm Is there anyway to force ClipIt to ignore password copied from password managers?

In browser extension lastpass as an example or a local install of keepass, bitwarden(didn't find this package it is in Manjaro package system) or lastpass(not sure if this is possible - it was in MacOS)
Nope, clipboard is shared. Better don't run clipit if you use a pw-manager.
Even if your pw-manager is clearing the clipboard after some seconds
it would have already copied into the history of clipit.
BTW: I do recommend the successors KeePassXC latest available from MX Package installer.
Does fit and runs better on linux then keepass. Keepass on linux requires a huge mono overhead.
KeePassXC db is compatiple to the keepass2-db format also used by keepass.
+++
EDIT: Should have mentioned latest KeePassXC from https://keepassxc.org/
is version 2.3.3 which is avaiable from MX testrepo within MX package installer.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Vincent17
Posts: 75
Joined: Tue Feb 20, 2018 1:07 am

Re: ClipIt - Ignore Password Managers?

#3 Post by Vincent17 »

Fehlix wrote
Better don't run clipit if you use a pw-manager.
Even if your pw-manager is clearing the clipboard after some seconds
it would have already copied into the history of clipit
Furthermore, if clipit is put in offline mode or killed, when it is resumed, it loads up anything remaining in the system selections. So if I put it offline to use password manager, I have to remember to wait until the pwd manager clears selections (15 seconds in my case), or else clear it myself before resuming clipit.

It would be much better to have direct control over this.
:question: Is there a way to place clipit offline or clear its history from command line? If so, I could write a script to start the password manager and take care of all this. Edit: I concluded there wasn't and submitted a feature request.
:question: To clear the system selections, it appears I can use

Code: Select all

xsel -cp ; xsel -cs ; xsel -cb
Or is there a better way?

Thanks in advance.

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: ClipIt - Ignore Password Managers?

#4 Post by skidoo »

In clipit preferences, we can specify custom to-be-ignored regex patterns. ( Works for me, cuz all my passwords are prefixed with "bunnyfoofoo"... )

IIRC, the alternative clipboard manager named CopyQ (package is in MX repo) supports "ignore texts copied from any window whose name matches XYZ".
I don't have it installed and couldn't find a screenshot of the exact preferences dialog tab, but it looks something like this:

Image

Vincent17
Posts: 75
Joined: Tue Feb 20, 2018 1:07 am

Re: ClipIt - Ignore Password Managers?

#5 Post by Vincent17 »

skidoo, thanks for that information. I tried out copyQ but failed to find the setting. Anyway, that's a LOT of clipboard manager, much more than I require. For me, I think the best solution is no clipboard manager. :covereyes:

There's a forum post about the password issue in clipit issues forum:
https://github.com/CristianHenzel/ClipIt/issues/48

EDIT: The following works for me. I think it solves the problem...?

Code: Select all

pkill clipit ; clipit=$?  
password-gorilla
xsel -cp ; xsel -cb  # clear system selections
[[ $clipit -eq 0 ]] && exec clipit # if clipit was running, restart it
Alternative to using startup script: change Exec line in desktop file to

Code: Select all

Exec=bash -c "pkill clipit ; clipit=$? ; password-gorilla ; xsel -cp ; xsel -cb ; [[ $clipit -eq 0 ]] && exec clipit"

Discostu
Posts: 50
Joined: Wed Jul 11, 2018 3:13 am

Re: ClipIt - Ignore Password Managers?

#6 Post by Discostu »

This has been fixed in February. Now it's possible to specify source windows that should be ignored. Could someone compile this and add it to the repo?

https://github.com/CristianHenzel/ClipIt/pull/111

User avatar
Stevo
Developer
Posts: 12837
Joined: Fri Dec 15, 2006 8:07 pm

Re: ClipIt - Ignore Password Managers?

#7 Post by Stevo »

The Buster version is git pull 20190202, so looks new enough. Will try and rebuild.

Discostu
Posts: 50
Joined: Wed Jul 11, 2018 3:13 am

Re: ClipIt - Ignore Password Managers?

#8 Post by Discostu »

Thanks. Sadly, it does not work reliably.

Post Reply

Return to “Software / Configuration”