You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
systemd-run always warns Failed to open /dev/tty: No such device or address #20576
Smells like something wrong with your WM: it passes stdout/stderr on a tty, but not a controlling tty. This usually means the program is a bit confused about ttys (i.e. thinks its a background shell job or so)
That said, even though your tty setup looks broken we should probably handle this better and detect this case.
You can work around this by using --no-ask-password
Smells like something wrong with your WM: it passes stdout/stderr on a tty, but not a controlling tty. This usually means the program is a bit confused about ttys (i.e. thinks its a background shell job or so)
I'm not sure I 100% understand this. It gets passed stdout/stderr. However, it is run as a background shell / job.
What I'm doing is running mapping a global keybinding to swaymsg exec -- systemd-run --user true. So I think it makes sense that there's not tty for it.
--no-ask-password does suppress the error message.
Activity
poettering commentedon Aug 30, 2021
Smells like something wrong with your WM: it passes stdout/stderr on a tty, but not a controlling tty. This usually means the program is a bit confused about ttys (i.e. thinks its a background shell job or so)
That said, even though your tty setup looks broken we should probably handle this better and detect this case.
You can work around this by using
--no-ask-passwordWhyNotHugo commentedon Aug 30, 2021
I'm not sure I 100% understand this. It gets passed stdout/stderr. However, it is run as a background shell / job.
What I'm doing is running mapping a global keybinding to
swaymsg exec -- systemd-run --user true. So I think it makes sense that there's notttyfor it.--no-ask-passworddoes suppress the error message.run/mount/systemctl: don't fork off PolicyKit/ask-pw agent when in --…
exec-util: handle gracefully if we want to fork an agent but have no …
poettering commentedon Aug 30, 2021
The problem is not that there was no tty for it. There is a TTY for it. However it's not the controlling TTY.
WhyNotHugo commentedon Aug 31, 2021
run/mount/systemctl: don't fork off PolicyKit/ask-pw agent when in --…