]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't try to talk to colord unless we are running as root.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 15 Dec 2014 14:51:10 +0000 (14:51 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 15 Dec 2014 14:51:10 +0000 (14:51 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12368 a1ca3aef-8c08-0410-bb20-df032aa958be

scheduler/colorman.c

index 84437b207af8ce13e3911171bb94efaf95871908..ec6507b6bf2ad5213f338597bd68868b2b44701f 100644 (file)
@@ -151,8 +151,11 @@ cupsdRegisterColor(cupsd_printer_t *p)     /* I - Printer */
   }
 
 #elif defined(HAVE_DBUS)
-  colord_unregister_printer(p);
-  colord_register_printer(p);
+  if (!RunUser)
+  {
+    colord_unregister_printer(p);
+    colord_register_printer(p);
+  }
 #endif /* __APPLE__ */
 }
 
@@ -205,7 +208,8 @@ cupsdUnregisterColor(cupsd_printer_t *p)/* I - Printer */
     apple_unregister_profiles(p);
 
 #elif defined(HAVE_DBUS)
-  colord_unregister_printer(p);
+  if (!RunUser)
+    colord_unregister_printer(p);
 #endif /* __APPLE__ */
 }