Browse Source

xfconf: strip trailing / when cleaning a prop tree

master
dece 12 months ago
parent
commit
19bb6d2223
  1. 2
      xion/xfconf.py

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

Loading…
Cancel
Save