/*
- * "$Id$"
- *
* Color management routines for the CUPS scheduler.
*
* Copyright 2007-2014 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
- * These coded instructions, statements, and computer programs are the
- * property of Apple Inc. and are protected by Federal copyright
- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
- * which should have been included with this file. If this file is
- * file is missing or damaged, see the license at "http://www.cups.org/".
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
*
* Original DBUS/colord code is Copyright 2011 Red Hat, Inc.
*
}
#elif defined(HAVE_DBUS)
- colord_unregister_printer(p);
- colord_register_printer(p);
+ if (!RunUser)
+ {
+ colord_unregister_printer(p);
+ colord_register_printer(p);
+ }
#endif /* __APPLE__ */
}
apple_unregister_profiles(p);
#elif defined(HAVE_DBUS)
- colord_unregister_printer(p);
+ if (!RunUser)
+ colord_unregister_printer(p);
#endif /* __APPLE__ */
}
* Make sure ColorSync is available...
*/
- if (ColorSyncRegisterDevice == NULL)
+ if (&ColorSyncRegisterDevice == NULL)
return;
/*
* Make sure ColorSync is available...
*/
- if (ColorSyncUnregisterDevice != NULL)
+ if (&ColorSyncUnregisterDevice != NULL)
{
CFUUIDRef deviceUUID; /* Device UUID */
colord_delete_device(device_id);
}
#endif /* __APPLE__ */
-
-
-/*
- * End of "$Id$".
- */