You are not logged in.

#1 2022-03-24 03:13:12

Charles80
Member
Registered: 2022-03-24
Posts: 1

Thunar - Open as root.

Hello guys.

OS: Arch > Updated
WM > Qtile
Thunar 4.16.10

I really did my best to find the answer but still can solve it.

I'm trying to configure in Thunar the left click in a file to open the menu with the "Open as root" option but can't achieve it.

Searching in the web I found that in:

Edit > Configure custom actions > + (New)

I have to edit as follow:

Open thunar as root here
Name: Open thunar as root here
Command: gksu thunar %f
File pattern: *
Appears if selection contains: Directories

By doing it, the right click menu does shows "Open thunar as root here" but if I click it, it does nothing.

I change the command to: pkexec  thunar %f 
With the same result.

I change the command to: thunar admin:// %f
And I wet: Failed to open "File System". Permission denied.

I have installed systemctl-policy and polkit but nothing.

Do I'm missing something?
Thanks!

Offline

#2 2022-03-24 06:45:36

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: Thunar - Open as root.

type gksu

pexec will require some polkit-agent, https://wiki.archlinux.org/title/Polkit … ion_agents
admin:// will require gvfs, https://wiki.archlinux.org/title/Thunar … and_addons

And opening a GUI filemanager as root is not a very good idea - using "admin://" is likely the best approach, but it's likely going to be "admin:/%f" to resolve "admin://usr/share" for %f == "/usr/share"

Offline

Board footer

Powered by FluxBB