If I open a text file that needs root privileges to modify, I get this error:

Failed to save 'this_file': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.

That’s fine, that’s expected.

But when I click on “Retry as Sudo”, I get this error:

Failed to save 'this_file': Unable to find pkexec or kdesudo.

This happens though pkexec is installed on my machine, at /usr/bin/pkexec; and I granted VSCodium access to it through Flatseal. How do I fix this?

  • off@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 days ago

    I kept fixing and then kept having new problems with vscdoium in flatpak, either have to give it all permission or give up maybe. As I was using it there would be new problems every once in a while, and different extensions introduced new issues too lol

    I gave up and just installed it through AUR.

    Even though it’s vscodium and not vscode you can run it with firejail --net=none /sbin/vscodium and it won’t have access to the internet