From a7e4e423df7eea6ec75958239f96ad5944678ff0 Mon Sep 17 00:00:00 2001 From: Alexander Schwinn Date: Fri, 8 Mar 2019 23:25:35 +0100 Subject: [PATCH] Thunar does not provide org.xfce.FileManager dbus service for root (Bug #15149) --- thunar/thunar-application.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/thunar/thunar-application.c b/thunar/thunar-application.c index 71a1594c..75c89b6d 100644 --- a/thunar/thunar-application.c +++ b/thunar/thunar-application.c @@ -310,6 +310,10 @@ thunar_application_dbus_name_lost_cb (GDBusConnection *connection, { ThunarApplication *application = user_data; g_critical (_("Name '%s' lost on the message dbus, exiting."), name); + + if (geteuid() == 0) + g_critical (_("If you run thunar as root/sudo you might need to install the package 'dbus-x11'."), name); + g_application_quit (G_APPLICATION (application)); } @@ -320,10 +324,6 @@ 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, -- 2.11.0