mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
busctl: Add space before "tree" paths for copying
This allows a double-click on the path in a terminal to select the
whole path. Otherwise the leading '-' character is also included in
the copied path.
```
New output:
./busctl tree org.freedesktop.network1
`- /org
`- /org/freedesktop
|- /org/freedesktop/LogControl1
`- /org/freedesktop/network1
|- /org/freedesktop/network1/link
| |- /org/freedesktop/network1/link/_31
| |- /org/freedesktop/network1/link/_32
```
This commit is contained in:
committed by
Yu Watanabe
parent
837dfea5ed
commit
bf422cf900
@@ -407,7 +407,7 @@ static void print_subtree(const char *prefix, const char *path, char **l) {
|
||||
n++;
|
||||
}
|
||||
|
||||
printf("%s%s%s\n",
|
||||
printf("%s%s %s\n",
|
||||
prefix,
|
||||
special_glyph(has_more ? SPECIAL_GLYPH_TREE_BRANCH : SPECIAL_GLYPH_TREE_RIGHT),
|
||||
*l);
|
||||
|
||||
Reference in New Issue
Block a user