From 73489be605ee9facb466c3c02cea5ef4d6eb841d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavol=20=C5=BD=C3=A1=C4=8Dik?= Date: Wed, 6 Nov 2024 17:44:53 +0100 Subject: [PATCH] tuned-ppd: Count profile hold cookies from 1 Counting from 0 causes issues for gnome-settings-daemon, for which a null cookie means that it currently has no active hold. --- tuned/ppd/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/ppd/controller.py b/tuned/ppd/controller.py index 4376c1e9..8e440cb6 100644 --- a/tuned/ppd/controller.py +++ b/tuned/ppd/controller.py @@ -42,7 +42,7 @@ def as_dict(self): class ProfileHoldManager(object): def __init__(self, controller): self._holds = {} - self._cookie_counter = 0 + self._cookie_counter = 1 self._controller = controller def _callback(self, cookie, app_id):