xfconf: strip trailing / when cleaning a prop tree

master
dece 3 years ago
parent 0f3a755083
commit 19bb6d2223

@ -1,6 +1,5 @@
import re import re
import shutil import shutil
import string
import subprocess import subprocess
from dataclasses import dataclass from dataclasses import dataclass
@ -110,6 +109,7 @@ class Xfconf:
def reset_root(self, channel, root): def reset_root(self, channel, root):
"""Reset all channel properties under root, return True on success.""" """Reset all channel properties under root, return True on success."""
root = root.rstrip("/")
output = self.xqs(f"-c {channel} -p {root} -r -R") output = self.xqs(f"-c {channel} -p {root} -r -R")
return output == "" return output == ""

Loading…
Cancel
Save