copying password to X selection instead of showing it
Hello,
maybe it would be better if there would be the possibility to copy the password to the X selection instead of displaying it on the screen (somebody else could read it). Also a warning befor showing the passwords could be helpful (of course you should able to disable the message in the config to prevent from annoying).
I know it's a password manager for the console, but this function would be desirable for your tool, it exists already in pwsafe.
Thanks a lot for cpm, it's a very nice password manager!
Greetings
Sounds like a good idea. I've seen it elsewhere, but can't remember where.
Hey,
yeah it already exists in pwsafe: http://sourceforge.net/projects/pwsafe/
This can be done, however CPM is not an Xwindows application; it is a console application. Interfacing with X requires dependencies on libs that aren't necessarily available or wanted, so we would have to either
- build a separate package that supports copying to x selection, or
- make some autoloading functionality that only activates when the lib is present, to avoid introducing package deps
I prefer to do the latter and I am happy to take contributions for pushing into X selection.
Hello,
yeah, I tried it already to implement the feature but I failed, because I'm too less experienced in writing C code. So I'm really sorry about that. But if I can help you, let me know.
You're right it would be mad to require X depencies on a server!
If you want to avoid dependencies, you can do: echo "$password" | xsel -i
You can check for xsel at startup time and offer the copy key if xsel is available