Skip to content

Commit

Permalink
Log wlroots version on startup
Browse files Browse the repository at this point in the history
Can be useful to make sure a bugfix is included. In the future maybe
the wlroots version string could include a commit hash when built
from source, too.
  • Loading branch information
emersion authored and kennylevinsen committed Apr 12, 2021
1 parent a558866 commit 78fc9d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sway/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <sys/un.h>
#include <unistd.h>
#include <wlr/util/log.h>
#include <wlr/version.h>
#include "sway/commands.h"
#include "sway/config.h"
#include "sway/server.h"
Expand Down Expand Up @@ -344,6 +345,7 @@ int main(int argc, char **argv) {
}

sway_log(SWAY_INFO, "Sway version " SWAY_VERSION);
sway_log(SWAY_INFO, "wlroots version " WLR_VERSION_STR);
log_kernel();
log_distro();
log_env();
Expand Down

0 comments on commit 78fc9d0

Please sign in to comment.