Doesn’t updating Thunar during the regular Manjaro updates also update its config files?
As I did not have changed anything manually yet in Thunar’s config, it should be overwritten by its newest version during an update, or am I mistaken at that point?
$ pacman -Qs Thunar
local/thunar 1.8.16-1 (xfce4)
Modern file manager for Xfce
local/thunar-volman 0.9.5-3 (xfce4)
Automatic management of removeable devices in Thunar
No, package updates don’t and shouldn’t mess with the configuration files in your home directory.
What happens is this: Manjaro offers some default configurations for Thunar (and its custom actions) when you first install the distro, or when you create a new user in the system.
These defaults can be found in the /etc/skel/ directory. The default settings for the custom actions of Thunar are in the file /etc/skel/.config/Thunar/uca.xml. You can also see them online here.
These defaults are copied to your home directory (in ~/.config/Thunar.uca.xml) upon a new system installation or upon a new user creation.
Package updates don’t touch this file, only you can edit it.
There is no such action as Edit as Root in the defaults (see the link above), so to answer your question: Manjaro doesn’t set such an action by default, maybe it did in the past but not anymore.
The fact that you have this custom action in the configuration file of Thunar in your home directory ~/.config/Thunar.uca.xml means either that this configuration was part of Manjaro in the past and you keep using an old configuration file in your home directory, or that you have copied it over to your home directory from an other installation. Or maybe you manually added it to Thunar - there are some instructions here which seem to be outdated since they use gksu.
The bottom line is that after using a distribution for a long period of time, it’s the user’s responsibility to keep their home directory “clean”, or to keep up with the changes made to packages and their config files.
Just like by doing this from your side:
This post from archived forum mentions Thunar Edit as Root added to Thunar by user How to replace gksu with zensu or gksu-polkit
I think this custom action was a thing from other XFCE distributions that users would add to Manjaro
Thanks a lot for this explanation. I can’t remember having edited Thunar’s configuration, that’s why I was asking.
Looks like this is indeed some remnant from my initial installation that happened quite some time ago
Thanks also for the information that gksu is a link to gksu-polkit now.
That makes me curious: What causes the error
Unable to init server: Could not connect: Connection refused
(mousepad:30310): Gtk-WARNING **: 17:18:21.251: cannot open display:
If something isnt fully polkit compatible it can have problems like that.
Besides which normally we dont want to actually start something using polkit … a text editor like kate for example is just used normally … then prompts for polkit actions if admin privileges are needed.
Same for gufw (but we patched it)
So a similar thing might work for mousepad, ie:
First check just editing/saving a file somewhere requiring credentials.