this post was submitted on 02 Apr 2025
2 points (100.0% liked)

Linux

2821 readers
1 users here now

Shit, just linux.

Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though… go nuts

founded 2 years ago
MODERATORS
 

cross-posted from: https://sh.itjust.works/post/35352374

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?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 week ago (1 children)
[–] [email protected] 1 points 1 week ago (1 children)

I have flatseal installed. Did you read the post?

[–] [email protected] 3 points 1 week ago

I did, but apparently missed that part. Thanks for the sarcasm.

If your permissions in Flatseal aren't cutting, you only have a few options then:

  1. Use ssh for the comms even if it's localhost
  2. Allow all perms through Flatseal, which is essentially like running via sudo
  3. Don't use flatpak and use the proper packaged version for your pm

This is a problem with the software.