We use a special tag on sudo, like this: $ sudo whoami Enter password: root When parsing prompt, kdesudo stalls. Reproducible: Always Steps to Reproduce: 1. Change sudo's password prompt. 2. Call a sudo for any command. 3. Verify it won't work on kdesudo Actual Results: kdesudo stalls
Created attachment 94181 [details] Proposed patch
Bug verified on Ubuntu 12.04 and 14.04.
Can confirm this is still an issue in Ubuntu 18.04 using: sudo 1.8.21p2 Qt: 4.8.7 KDE Development Platform: 4.14.38 KDE su: 1.0 I don't think this particular patch will work in all cases, and needs to handle extra text to be inputted and the response to be passed to sudo. What I did is use an extra prompt after the standard prompt (I installed libpam-google-authenticator) but I think it comes under the same use case.
Might be related to it not being maintained here: https://askubuntu.com/questions/1044354/kdesu-not-working But it's still in use when running programs from the K menu like a partition manager for example - I wouldn't mind if this were to be replaced, but running something without a terminal using the GUI that needs root is still something that's needed.