aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2021-04-12 09:47:16 +0200
committerLibravatar Kenny Levinsen <kl@kl.wtf>2021-06-24 18:10:01 +0200
commit9bdb0ead6e7d6352ec76b1a38ed891111cd518c9 (patch)
treecf307a8c26ba08492a83ab00172b8b4d67a4b25e
parentRemove WLR_HAS_XDG_FOREIGN checks (diff)
downloadsway-9bdb0ead6e7d6352ec76b1a38ed891111cd518c9.tar.gz
sway-9bdb0ead6e7d6352ec76b1a38ed891111cd518c9.tar.zst
sway-9bdb0ead6e7d6352ec76b1a38ed891111cd518c9.zip
Log wlroots version on startup
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. (cherry picked from commit 78fc9d0d2d4fae0565b115f5ee4b0296b4e993f2)
-rw-r--r--sway/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index 84f8eb6e..cd949e1e 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -12,6 +12,7 @@
12#include <sys/un.h> 12#include <sys/un.h>
13#include <unistd.h> 13#include <unistd.h>
14#include <wlr/util/log.h> 14#include <wlr/util/log.h>
15#include <wlr/version.h>
15#include "sway/commands.h" 16#include "sway/commands.h"
16#include "sway/config.h" 17#include "sway/config.h"
17#include "sway/server.h" 18#include "sway/server.h"
@@ -344,6 +345,7 @@ int main(int argc, char **argv) {
344 } 345 }
345 346
346 sway_log(SWAY_INFO, "Sway version " SWAY_VERSION); 347 sway_log(SWAY_INFO, "Sway version " SWAY_VERSION);
348 sway_log(SWAY_INFO, "wlroots version " WLR_VERSION_STR);
347 log_kernel(); 349 log_kernel();
348 log_distro(); 350 log_distro();
349 log_env(); 351 log_env();