xfconf: strip trailing / when cleaning a prop tree
This commit is contained in:
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…
Reference in a new issue