You are not logged in.

#1 2016-01-05 03:11:40

Thorned_Rose
Member
From: New Zealand
Registered: 2015-12-30
Posts: 43

Thunar - Custom Actions with root

I was adding some custom actions to Thunar with the help of this page: http://docs.xfce.org/xfce/thunar/custom-actions

When I came to "Opening a root Thunar" the instructions:

  • Name: Open a root Thunar here

  • Command: gksu thunar %f

  • File pattern: *

  • Appears if selection contains: Directories

Note: Some distributions no longer include gksu. Use pkexec instead.

fell over whereby XFCE PolKit would correctly ask for the password but then nothing would happen (in this case, Thunar did not launch with root privilege).

When looking for the solution, I came across this on the net: http://askubuntu.com/questions/198128/t … 755#675755. Following the instructions, it does indeed work and I have been succesfully able to add various actions with root to Thunar.

My question is - is this best practice? Or is there a better way than the above "dirty little trick"?

Offline

#2 2016-04-08 16:21:26

Mxyzptlk
Member
From: Fairfax, Virginia
Registered: 2016-04-08
Posts: 1

Re: Thunar - Custom Actions with root

Another workable option would be to follow gksu with -S so that the Command would look like this:  gksu -S thunar %f


Logic will get you from A to B. Imagination will take you everywhere.      <>    Albert Einstein

Offline

Board footer

Powered by FluxBB