rickyrockrat / parcellite

GNU General Public License v3.0
220 stars 29 forks source link

Supporting Clear-Clipboard request API #86

Closed Massimo-B closed 7 months ago

Massimo-B commented 10 months ago

parcellite-1.2.1

As figured out in https://github.com/keepassxreboot/keepassxc/issues/9842 parcellite does ignore empty/clear clipboard requests from a password manager.

cyberpsyquack commented 10 months ago

I face the same problem with Parcellite 1.2.1 and KeePassXC 2.7.4

rickyrockrat commented 7 months ago

There is a command fifo in .local/share/parcellite/ that accepts these commands: stop_pri, stop_cli, stop_all, run_pri, run_cli, run_all, clear_all You can play with that. if you run clear_all, it will clear your history.

echo 'clear_all' > ~/.local/share/parcellite/fifo_cmd

Massimo-B commented 7 months ago

Is that documented somewhere? How do the other commands work? Is that some standard API as it is used by other clipboard managers? How is it possible for a password manager to delete the single entry of the password after a timeout?

rickyrockrat commented 6 months ago

It is not documented anywhere besides the code. I will add it to the man page. This is not a standard API, but rather an experimental feature request by users. At the current time, there is no way to clear just one entry from the list. The password manager in question would need to be able to write to the fifo. Hope that helps.

Massimo-B commented 1 month ago

I'm sure they won't integrate a custom API of a small clipboard manager project, if there already is a standard: https://github.com/keepassxreboot/keepassxc/issues/9842#issuecomment-1725221584 So far I have not found what standard that is and how other clipboard managers are doing that.