Skip to content
Snippets Groups Projects
Commit b1af81ca authored by Andre Miranda's avatar Andre Miranda
Browse files

Allow Thunar run with sudo as before (Bug #13884)

parent 541965a8
No related branches found
No related tags found
No related merge requests found
...@@ -320,6 +320,10 @@ thunar_application_dbus_name_lost_cb (GDBusConnection *connection, ...@@ -320,6 +320,10 @@ thunar_application_dbus_name_lost_cb (GDBusConnection *connection,
static void static void
thunar_application_dbus_init (ThunarApplication *application) 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, application->dbus_owner_id = g_bus_own_name (G_BUS_TYPE_SESSION,
"org.xfce.FileManager", "org.xfce.FileManager",
G_BUS_NAME_OWNER_FLAGS_NONE, G_BUS_NAME_OWNER_FLAGS_NONE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment