[Xfce4-commits] [xfce/thunar] 01/01: Allow Thunar run with sudo as before (Bug #13884)

noreply at xfce.org noreply at xfce.org
Wed Nov 22 04:46:57 CET 2017


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit b1af81ca05f0ef0310b1eddac410c2650ef89305
Author: Andre Miranda <andreldm at xfce.org>
Date:   Wed Nov 22 00:46:48 2017 -0300

    Allow Thunar run with sudo as before (Bug #13884)
---
 thunar/thunar-application.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/thunar/thunar-application.c b/thunar/thunar-application.c
index 8de8e87..e85d55a 100644
--- a/thunar/thunar-application.c
+++ b/thunar/thunar-application.c
@@ -320,6 +320,10 @@ thunar_application_dbus_name_lost_cb (GDBusConnection *connection,
 static void
 thunar_application_dbus_init (ThunarApplication *application)
 {
+    /* Do not atempt to register if running as root */
+    if (geteuid() == 0)
+      return;
+
     application->dbus_owner_id = g_bus_own_name (G_BUS_TYPE_SESSION,
                                "org.xfce.FileManager",
                                G_BUS_NAME_OWNER_FLAGS_NONE,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list