To access sudo capabilities I seemingly need to prompt the user for a password. I need to replace ?/?/? with the path of the program that displays a prompt for user to input password.
I searched the web, and old posts all talk about ssh-askpass, but it is nor on device, nor in repos. Nor of the programs mentioned as alternatives look modern, or similar to the default GNOME’s password prompt.
This looks like an instance of https://xyproblem.info/. What do you want to do? If it’s to run a command on the host with root privileges then you should use flatpak-spawn --host pkexec command. It will ask a password as needed.
UPD: OMG I can’t read. I was triying to figure out why pkexecsing-box is not launching while there’s no problem with normal pkexec, looked the name up and was surprised why it guessed sing-box. Than I realised I missed a comma and 2 elements of an array merged.
Still can’t figure out why the prompt disappears after a few moments.