Using policykit+dbus instead of gksu to run graphical application <p>I'm searching for a command that does gksu or beesu job, but depends on policykit.</p> <p>The policykit and dbus documentation is somehow very complicated and not clear.</p> <p>I found "pkexec" but it shows errors when trying to run a graphical application</p> <pre><code>pkexec gedit </code></pre> <p>results:</p> <pre><code>(gedit:7243): Gtk-WARNING **: cannot open display: </code></pre>