Missing "Thunar Root" custom action

My friend has got a PC with Manjaro, which is much similar to mine. In both systems there is only one user, which belongs to the “administrator” category.

When I start thunar on my PC I see the item “thunar root” in the thunar /file menu. My friend DOES NOT see the item, even though he has the same Manjaro installed.
On which conditions does this depend? I have no idea, which configuration files I might inspect or modify.

Possibly my question is related to polkit, which, however, is far beyond my knowledge and understanding.

Have you tried to create a new custom action in Thunar?

Was there something specific that makes you believe it might be related to polkit?

“Thunar Root” seems fine on a recent XFCE virtual machine. Something to keep in mind is that the option won’t always be offered in the context menu, dependent on which folders are right-clicked.

To help isolate the problem, please create a new User to test with; see if Thunar Root will work in another account.

It might also be beneficial to have the inxi output from your friend’s computer (see below);


System Information:

Output of this command (formatted according to forum requirements) may be useful for those wishing to help:

inxi --filter --verbosity=8

or the short form:

inxi -zv8

Those with privacy concerns, note that when -z, or --filter is used, all personally identifiable information is filtered out from the resulting inxi output. :eyes:


A general warning that using Thunar Root is not recommended in inexperienced hands. :eyes:


Regards.

1 Like

@soundofthunder
With respect to polkit I remember my problem
https://forum.manjaro.org/t/pamac-manager-authentifizierungs-problem/169802/23

I deleted some local polkit config files; then pamac GUI worked as expected.

Maybe somebody deleted the custom action unknowingly. Simply recreate it on folders with filepattern *.

pkexec thunar %f
1 Like

what @Teo said

edit → configure custom actions - it should be there
if not:
create a new custom action
in the tab fill in name and description and the command as
pkexec thunar %F or pkexec thunar %f
in the next tab “appearance conditions” put an asterisk * as the file pattern
save
done

in german:
Bearbeiten → Benutzerdefinierte Aktionen → dort sollte es auftauchen
wenn nicht:
neue Aktion anlegen
unter dem Tab “Allgemein” den Namen der Aktion und die Beschreibung und als Befehl
pkexec thunar %F oder pkexec thunar %f
im nächsten Tab (Dateizuordnung) unter Dateimuster einen * eintragen
speichern
fertig

… in Manjaro Xfce4 it is:
pkexec thunar %f
in my Mint system it is
pkexec thunar %F

I don’t think it has anything to do with polkit.


As @jrichard326 and @Nachlese and @Teo have already mentioned, you could make a new custom action.

Instructions needed for creating custom actions:

The example given creates a custom action with the same functionality of Thunar Root, but with a different name Open thunar as root here (and you can change that if needed).

Open thunar as root here

According tt the XFCE page, this information should work with an Arch based OS:

Name: Open thunar as root here
Command: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY dbus-launch thunar %f
File pattern: *
Appears if selection contains: Directories

Regards.

Pliz dont do zet. Zis is ze Inglischer sekshun of ze forum.

Next time yoo vill be shot at dawn. Vis sticky gummy bears.

:smiling_imp:

I know that they read and write german and likely have a german UI, so I gave the very same description in their language also.
No gummy bears please.

Despite custom actions, right clicking the desktop should provide thunar root. But GUI applications as root is not the best idea to use.

In the current userid thunar does not show “thunar root” and right click on the desktop does neither.

I created a new , similar userid, i.e. one of category “administrator”-

In the new userid thunar shows “thunar root” and right click on the desktop shows “thunar root” .

I believe the explanation of that difference is a challenge for the experts!

It probably got deleted somehow.
It’s defined in:
~/.config/Thunar/uca.xml

see whether it is there (it is probably not):
grep pkexec ~/.config/Thunar/uca.xml
If the command returns nothing, it is not there.

To restore it:

cp /etc/skel/.config/Thunar/uca.xml ~/.config/Thunar/uca.xml
(copy the default setting from /etc/skel to your $HOME)

1 Like

As the issue is limited to their own User Account, the explanation for this is not challenging at all; it can only be attributable to something the user has done, whether intentionally or otherwise.

In this case the resolution is clear. Recreate the custom action (information provided previously).

@jrichard326 was the first to offer this as a solution; my recommendation would be to mark their post as the solution to this topic.

The topic title has been changed to better reflect reality.

Regards.


Update:

The Solution post has been marked in your absence.

I agree. The time delay is due to the fact that I wanted to convince myself on my friend’s PC.

1 Like

Thunar– Open root terminal here [Xfce Docs]

I know, but the question was about thunar-root.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.