From: Michael R Sweet Date: Thu, 17 Apr 2025 18:58:04 +0000 (-0400) Subject: Fix dbus notifier (Issue #1235) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5642ac1c474d0c8317d14abc8b8dcd906de4689;p=thirdparty%2Fcups.git Fix dbus notifier (Issue #1235) --- diff --git a/CHANGES.md b/CHANGES.md index 6409cb6938..896b9b8845 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,7 +7,7 @@ Changes in CUPS v2.4.13 (YYYY-MM-DD) - Fixed a memory leak in `httpClose` (Issue #1223) - Fixed missing commas in `ippCreateRequestedArray` (Issue #1234) -- Fixed subscription threading issues in the scheduler (Issue #1235) +- Fixed subscription issues in the scheduler and D-Bus notifier (Issue #1235) Changes in CUPS v2.4.12 (2025-04-08) diff --git a/notifier/dbus.c b/notifier/dbus.c index 7151567ccb..fb798c933d 100644 --- a/notifier/dbus.c +++ b/notifier/dbus.c @@ -1,13 +1,14 @@ /* * D-Bus notifier for CUPS. * - * Copyright © 2020-2024 by OpenPrinting. - * Copyright 2008-2014 by Apple Inc. - * Copyright (C) 2011, 2013 Red Hat, Inc. - * Copyright (C) 2007 Tim Waugh - * Copyright 1997-2005 by Easy Software Products. + * Copyright © 2020-2025 by OpenPrinting. + * Copyright © 2008-2014 by Apple Inc. + * Copyright © 2011, 2013 Red Hat, Inc. + * Copyright © 2007 Tim Waugh + * Copyright © 1997-2005 by Easy Software Products. * - * Licensed under Apache License v2.0. See the file "LICENSE" for more information. + * Licensed under Apache License v2.0. See the file "LICENSE" for more + * information. */ /* @@ -321,7 +322,7 @@ main(int argc, /* I - Number of command-line args */ signame = "PrinterAdded"; else if (!strcmp(word2, "deleted")) signame = "PrinterDeleted"; - else if (!strcmp(word2, "modified")) + else if (!strcmp(word2, "config-changed") || !strcmp(word2, "modified")) signame = "PrinterModified"; else continue;