nix-output-monitor icon indicating copy to clipboard operation
nix-output-monitor copied to clipboard

pass through sudo password prompt

Open evils opened this issue 1 year ago • 8 comments

i often do sudo nixos-rebuild -I nixpkgs=/home/evils/nixpkgs switch |& nom nom used to at least pass the password prompt through for a second, but somewhere between 1.1.3.0 and 2.0.0.2 that stopped

it'd be nice if the prompt was permanently passed through so i don't have to cancel and do sudo -v to be sure sudo got my password

evils avatar Oct 29 '22 10:10 evils

Hey there,

sorry for breaking your workflow. I think this has something to do with the prompt not ending in a newline.

maralorn avatar Nov 01 '22 15:11 maralorn

Fixed, new release will come soon.

maralorn avatar Nov 21 '22 04:11 maralorn

I have the feeling that this might actually still be a problem despite my "fix". Is this problem fixed for you @evils ?

maralorn avatar Dec 14 '22 21:12 maralorn

hmm, i had the impression it was working on my little pcengines board but i just checked and my desktop is actually ahead, at 2.0.0.5 (vs 2.0.0.4) so it showing the prompt for a second on the board is probably due to it being significantly slower than my desktop... on my desktop it does display it, but for maybe 1 frame which could qualify as fixing the issue i described but not the ideal scenario

evils avatar Dec 15 '22 07:12 evils

If I hadn't found this issue, I wouldn't know you attempted a fix. :grin: I've been typing my password in good faith, like @evils, and did wonder if there's something planned to address this UX-wise.

devhell avatar Sep 10 '23 15:09 devhell

I am currently on a break from working on nom but it will be over in a few months. Then I will look into this again.

maralorn avatar Sep 10 '23 23:09 maralorn

I've found that I can see the sudo prompt if I hit enter so that the prompt is re-rendered after failing validation.

johnhamelink avatar Sep 18 '23 13:09 johnhamelink

I've found that I can see the sudo prompt if I hit enter so that the prompt is re-rendered after failing validation.

Interesting, I did the same thing, and the prompt appeared for a second and then was overwritten by the timer again. Maybe it's terminal dependent somehow?

devhell avatar Sep 30 '23 16:09 devhell