Short answer is "no".

If this "solved" the issue you mentioned in #3871 it is probably just that you started Geany with sudo, and quit it cleanly. It thus removed the problematic socket file, allowing subsequent non-sudo runs to work properly. The issue you had was a leftover file not owned by your user in your user's homedir, and generalizing this behavior is just gonna widen the amount of files that might end up root-owned in your homedir.

The real solution would be to have a sudo configuration that doesn't lead to root writing files in your homedir. I believe Ubuntu has had this issue for basically forever, which I don't understand; but I guess they have their reasons.

Then, we can't do this for several reasons:


A pretty interesting solution to editing files as root is gvfsd-admin: basically you can use the URI admin:///path/to/file and the system asks for permission to edit this file from a non-root app. This works with e.g. GEdit and Pluma. It doesn't in Geany (yet?) for technical reasons we might or might not want to change, but it possibly could if really editing root files with an IDE-like app seem useful enough to enough people.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/3880/2123435142@github.com>