aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-10-10 18:34:50 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-10-10 18:34:50 +1000
commitfa8959532ba3d3b0846dc3fb9f55ccbf4e6655ec (patch)
treec07061b6dbd27ce14fa3c8ba2f8d8ca5dee2fdf0 /swaybar
parent2bd561d2b71830b1be5546112faf035383c8615e (diff)
Fix program name in version strings
When running swaymsg -v, the version returned is actually the version of swaymsg itself, yet the message displayed was "sway version <version>". This can create confusion if users update sway and swaymsg but don't restart sway, then use swaymsg to check the version. This patch changes the wording to be "swaymsg version <version>" instead, and likewise for swaybar. To get the version of a running sway instance, users should run swaymsg -t get_version.
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
index d2c579db..db204f4a 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -62,7 +62,7 @@ int main(int argc, char **argv) {
bar_id = strdup(optarg);
break;
case 'v':
- fprintf(stdout, "sway version " SWAY_VERSION "\n");
+ fprintf(stdout, "swaybar version " SWAY_VERSION "\n");
exit(EXIT_SUCCESS);
break;
case 'd': // Debug