| Summary: | Sudo password prompt on login due to a script in ~/.bash-profile causes boot hang | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Sanmay <sanmaycjoshi+kde> |
| Component: | Startup process | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | minor | CC: | daninshed, kde, nate, olib141 |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.4 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Sanmay
2025-09-07 20:53:49 UTC
Unfortunately there's no way to improve this from the KDE side. `sudo` is a command-line tool that doesn't know how to display a GUI authentication prompt. So if there is none, it'll just ask invisibly into the ether, hanging forever. As such, this is unfortunately a configuration issue on your side that needs to be fixed there too. If you replaced `sudo` with `run0` or `pkexec`, then it would do what you expect automatically, because those tools do know how to display a GUI authentication prompt. (In reply to Nate Graham from comment #1) > Unfortunately there's no way to improve this from the KDE side. `sudo` is a > command-line tool that doesn't know how to display a GUI authentication > prompt. So if there is none, it'll just ask invisibly into the ether, > hanging forever. As such, this is unfortunately a configuration issue on > your side that needs to be fixed there too. > > If you replaced `sudo` with `run0` or `pkexec`, then it would do what you > expect automatically, because those tools do know how to display a GUI > authentication prompt. I presumed it as a bug because Linux Mint had prompted with the GUI authentication when a script with `sudo` was there in `.bash-profile`. But yeah, what you say makes sense. Thanks. Will update my code. Interesting, that's unexpected. I wonder what wizardry they do to make that happen. If you could find it, it would be useful to compare notes. (In reply to Nate Graham from comment #3) > Interesting, that's unexpected. I wonder what wizardry they do to make that > happen. If you could find it, it would be useful to compare notes. I am not using Mint as of now and remembering out of memory. Will try to recreate that behavior in a VM and get back here. |