- Edited
pfr Hmmm nope, this doesn't seem to help. Also, it seems that there is no -sensitive flag for my version of xclip - v0.3
I still think that may be related to how background process on that non-interactive shell are handled by either LXQt or /bin/sh or something else... I sugest you to try trapping SIGHUP:
#!/bin/sh
trap : HUP
rbw-menu password | xclip -selection clipboard
I removed the unneeded set -e line (which exits the shell when something fails). The only command whose exit status is known to shell is xclip (in a pipeline, only the last command's exit status is known), and if XClip fails the shell would exit on error anyway (nothing is run afterwards).






