]> git.sur5r.net Git - i3/i3/commit
i3 --moreversion: use readlink /proc/$pid/exe instead of realpath(argv[0])
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 13 Aug 2012 11:38:04 +0000 (13:38 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 13 Aug 2012 11:38:04 +0000 (13:38 +0200)
commitd7b11bde283855633bd1b3e695d88d024a0abcd8
tree7048f1f7a8d4e7825b3e9c0b11e041382934de6d
parentef90ccd1a8e55460145f73f8d8e51507d352c28d
i3 --moreversion: use readlink /proc/$pid/exe instead of realpath(argv[0])

The latter is actually wrong. For example, when running i3
--moreversion, it will print $(pwd)/i3 instead of $(which i3). In my
previous tests, this coincidentally was the same.
src/display_version.c