xfconf: strip trailing / when cleaning a prop tree

This commit is contained in:
dece 2020-11-02 23:53:52 +01:00
parent 0f3a755083
commit 19bb6d2223

View file

@ -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 == ""