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 }}
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
I am making an electron app which I am distributing as a "strictly" confined snap application. This app requires superuser privileges to run some commands, so I am using sudo-prompt. But it turns out that the command fails as it fails to find pkexec or kdesudo for authentication purpose. This does work in a "classic" snap though. Is there any way to get it working in a strictly confined snap?
Error: Unable to find pkexec or kdesudo.
at test (/snap/g-assist/x6/resources/app.asar/node_modules/sudo-prompt/index.js:205)
at /snap/g-assist/x6/resources/app.asar/node_modules/sudo-prompt/index.js:212
at FSReqCallback.oncomplete (fs.js:158)
Screenshot
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am making an electron app which I am distributing as a "strictly" confined snap application. This app requires superuser privileges to run some commands, so I am using
sudo-prompt
. But it turns out that the command fails as it fails to findpkexec
orkdesudo
for authentication purpose. This does work in a "classic" snap though. Is there any way to get it working in a strictly confined snap?Code Snippet
Error Stacktrace
Screenshot
The text was updated successfully, but these errors were encountered: