Open a text file as root by just using the right click menu

Currently you have three topics open on this issue.
@jgordon last posted a usable workaround here;

The app gksu was deprecated due to a security vulnerability that the developers could not readily fix.
The app pkexec somewhat replaces it, but not fully. Pkexec does not work with all applications.
It should work on thunar:

pkexec thunar %f

1 Like