Genau, ich habe mir nur die Passagen von
Thunar und Mousepad kopiert, und das dann noch in
Thunar konfiguriert mit den Befehlen
und
Funktioniert bis hierher super!
Was ich nach mehrmaligem Hin- und Her jedoch nicht hinbekomme, ist, das Ganze jetzt noch um das Root-Terminal und Root-nano zu ergänzen.
Meine
org.freedesktop.policykit.pkexec.policy
sieht aktuell folgendermaßen aus:
Code: Alles auswählen
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="org.freedesktop.policykit.pkexec.run-thunar">
<description>Run Thunar</description>
<message>Authentication is required to run Thunar as Root</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/thunar</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
</action>
<action id="org.freedesktop.policykit.pkexec.run-mousepad">
<description>Run Mousepad</description>
<message>Authentication is required to run Mousepad as Root</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/mousepad</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
</action>
<action id="org.freedesktop.policykit.pkexec.run-dbus-launch">
<description>Run Dbus Launch</description>
<message>Authentication is required to run Dbus-launch as Root</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/dbus-launch</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
</action>
</policyconfig>
Hier wollte ich jetzt noch, gemäß dem Schema das bis jetzt hier funktioniert hat, noch folgende Passage einfügen:
Code: Alles auswählen
<action id="org.freedesktop.policykit.pkexec.run-xfce4-terminal">
<description>Run Xfce4 Terminal</description>
<message>Authentication is required to run Xfce4 Terminal as Root</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/xfce4-terminal</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
</action>
Dann habe ich bei
Thunar folgenden Befehl gesetzt für die von mir erzeugte benutzerdefinierte Aktion "root terminal":
Es passiert aber, außer der Passwortabfrage, daraufhin leider nichts.
Wo liegt hier der Fehler, bzw. wie muss ich vorgehen, um das umzusetzen?