I'm assuming you're using the nautilus file manager. I found this post in adding right click actions to nautilus: https://askubuntu.com/questions/210192/how-can-you-add-an-item-to-the-right-click-menu-in-nautilus-without-nautilus-ac#672553 You could make a bash script like shown in the post and use polkit to open the password prompt and run a command as root.
KaninchenSpeed
joined 8 months ago
Jeden Tag verliert man ein bisschen Hoffnung.
They haven't implemented the driver for the Fairphone 5 yet. I think it works on the Fairphone 4.
I got a Fairphone so I could run calyxos. The only thing missing for me is the option to stop charging at 80%.
Most phones can, it's just disabled in software, you can enable it in Androids developer settings.
You could try
pkexec
insted ofsudo
. Pkexec pops up the password prompt in a window insted of prompting in the terminal.