Closed xfzv closed 1 year ago
Nevermind, I figured it out.
I had to use the environment variables directly in autorun.sh
:
export CM_IGNORE_WINDOW="KeePassXC"
export CM_LAUNCHER="rofi"
run clipmenud
I guess the environment variables were read after clipmenud
was run from autorun.sh
.
I'm using AwesomeWM / X11. I cannot get
$CM_IGNORE_WINDOW
environment variable to work.~/.config/awesomewm/autorun.sh
:.zshrc
:The environment variables are printed in the terminal:
$CM_LAUNCHER=rofi
works as expected.However, when I copy some text from KeePassXC window and run
clipmenu
, the text I copied appears, whereas it shouldn't.The KeePassXC window name seems correct:
I also tried with the systemd user unit with
Environment=CM_IGNORE_WINDOW=KeePassXC
, to no avail.If I disable
clipmenud
from myautorun.sh
and manually run the following from the terminal:the two environment variables aren't passed at all but clipmenu works normally via dmenu.
Thanks in advance.