mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03: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:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user