I try to create a custom action to run thunas as root (because I need it) but i use 'pkexec thunar' pkexec throw gnome-polkit, lxpolkit or other implementation work, but thunar report as dysplay: (no string) and fail so is thunar bug, that think that run thunar throw pkexec is a display: (no string) where this is a lie (runing in X or trow xterm in xfce or gnome)
This should be fixed in the next release of Thunar, I believe, as git master contains this: commit 8eeed6ba6ed0b1efa2b2b05c0b108da816763069 Author: Eric Koegel <eric.koegel@gmail.com> Date: Sat Nov 1 22:13:18 2014 +0300 Add pkexec policy (Bug #11122) This adds a pkexec policy file to Thunar. This way if the user of a desktop system wants to use thunar to modify files as root and has the proper credentials they can. pkexec comes from polkit which does about the same thing as sudo/gksu except also supports authentication methods like fingerprint or smart card readers. Signed-off-by: Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>