From 19bb6d2223eaa6379dad9185cc58592d8f1fc6be Mon Sep 17 00:00:00 2001 From: dece Date: Mon, 2 Nov 2020 23:53:52 +0100 Subject: [PATCH] xfconf: strip trailing / when cleaning a prop tree --- xion/xfconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xion/xfconf.py b/xion/xfconf.py index 69f1b40..f90bd36 100644 --- a/xion/xfconf.py +++ b/xion/xfconf.py @@ -1,6 +1,5 @@ import re import shutil -import string import subprocess from dataclasses import dataclass @@ -110,6 +109,7 @@ class Xfconf: def reset_root(self, channel, root): """Reset all channel properties under root, return True on success.""" + root = root.rstrip("/") output = self.xqs(f"-c {channel} -p {root} -r -R") return output == ""