2012-08-12 15:10:13 +02:00
|
|
|
|
/*
|
|
|
|
|
* vim:ts=4:sw=4:expandtab
|
|
|
|
|
*
|
|
|
|
|
* i3 - an improved dynamic tiling window manager
|
2015-04-04 02:17:56 +02:00
|
|
|
|
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
|
2012-08-12 15:10:13 +02:00
|
|
|
|
*
|
|
|
|
|
* display_version.c: displays the running i3 version, runs as part of
|
|
|
|
|
* i3 --moreversion.
|
|
|
|
|
*/
|
2013-12-29 03:11:50 +01:00
|
|
|
|
#pragma once
|
2012-08-12 15:10:13 +02:00
|
|
|
|
|
2016-10-11 09:13:35 +02:00
|
|
|
|
#include <config.h>
|
|
|
|
|
|
2012-08-12 15:10:13 +02:00
|
|
|
|
/**
|
|
|
|
|
* Connects to i3 to find out the currently running version. Useful since it
|
|
|
|
|
* might be different from the version compiled into this binary (maybe the
|
|
|
|
|
* user didn’t correctly install i3 or forgot te restart it).
|
|
|
|
|
*
|
|
|
|
|
* The output looks like this:
|
|
|
|
|
* Running i3 version: 4.2-202-gb8e782c (2012-08-12, branch "next") (pid 14804)
|
|
|
|
|
*
|
|
|
|
|
* The i3 binary you just called: /home/michael/i3/i3
|
|
|
|
|
* The i3 binary you are running: /home/michael/i3/i3
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
void display_running_version(void);
|