mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +01:00
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.
This commit is contained in:
parent
2bd561d2b7
commit
fa8959532b
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user