Skip to content
Discussion options

You must be logged in to vote

hmm, the env gets filtered on purpose. in user mode the built in allowlist is just USER, LOGNAME, HOME, SHELL, XDG_* and a few editor/pager vars, so DISPLAY and XAUTHORITY are dropped before the service script even runs:

openrc/src/shared/misc.c

Lines 70 to 74 in 14e11b7

static const char *const usrenv_allowlist[] = {
"USER", "LOGNAME", "HOME", "SHELL",
"XDG_*", "DIFFTOOL", "LESS", "PAGER",
"EDITOR", "VISUAL", NULL
};

the escape hatch is rc_env_allow (L97 in the same file), which in user mode is read from ~/.config/rc/rc.conf. put rc_env_allow="DISPLAY XAUTHORITY" there, then start dunst from inside the x session, eg rc-service -U dunst start at the e…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@q3cpma
Comment options

@q3cpma
Comment options

@navi-desu
Comment options

Answer selected by q3cpma
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants