diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-10-10 18:34:50 +1000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-10-10 18:34:50 +1000 |
| commit | 37c5bf2683ca31bec8bd6084d3b1f6b9700d872e (patch) | |
| tree | c07061b6dbd27ce14fa3c8ba2f8d8ca5dee2fdf0 /swaymsg | |
| parent | 3c1996eb1b6a944f18a6c957f89822baf3909a5e (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 'swaymsg')
| -rw-r--r-- | swaymsg/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c index 3767daf3..4688737c 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c @@ -345,7 +345,7 @@ int main(int argc, char **argv) { cmdtype = strdup(optarg); break; case 'v': - fprintf(stdout, "sway version " SWAY_VERSION "\n"); + fprintf(stdout, "swaymsg version " SWAY_VERSION "\n"); exit(EXIT_SUCCESS); break; default: |
