Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

ClipIt - Ignore Password Managers?

Post Reply
diddyonlinux
Forum Novice
Forum  Novice
Posts: 35
Joined: Wed Jul 25, 2018 3:08 pm

ClipIt - Ignore Password Managers?

#1

Post by diddyonlinux » 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)

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 4605
Joined: Wed Apr 11, 2018 5:09 pm

Re: ClipIt - Ignore Password Managers?

#2

Post by fehlix » Wed Jul 25, 2018 5:19 pm

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
Forum Novice
Forum  Novice
Posts: 71
Joined: Tue Feb 20, 2018 1:07 am

Re: ClipIt - Ignore Password Managers?

#3

Post by Vincent17 » Mon Oct 22, 2018 8:58 pm

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
Forum Guide
Forum Guide
Posts: 1446
Joined: Tue Sep 22, 2015 6:56 pm

Re: ClipIt - Ignore Password Managers?

#4

Post by skidoo » Tue Oct 23, 2018 5:04 am

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
Forum Novice
Forum  Novice
Posts: 71
Joined: Tue Feb 20, 2018 1:07 am

Re: ClipIt - Ignore Password Managers?

#5

Post by Vincent17 » Tue Oct 23, 2018 2:31 pm

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
Forum Novice
Forum  Novice
Posts: 53
Joined: Wed Jul 11, 2018 3:13 am

Re: ClipIt - Ignore Password Managers?

#6

Post by Discostu » Wed May 15, 2019 5:18 pm

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
Forum Veteran
Forum Veteran
Posts: 19837
Joined: Fri Dec 15, 2006 8:07 pm

Re: ClipIt - Ignore Password Managers?

#7

Post by Stevo » Wed May 15, 2019 9:30 pm

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

Discostu
Forum Novice
Forum  Novice
Posts: 53
Joined: Wed Jul 11, 2018 3:13 am

Re: ClipIt - Ignore Password Managers?

#8

Post by Discostu » Wed May 22, 2019 4:22 pm

Thanks. Sadly, it does not work reliably.

Post Reply

Return to “Software / Configuration”