enable shmlog when invoked as i3-with-shmlog, install symlink + .desktop file

This commit is contained in:
Michael Stapelberg
2014-01-04 12:15:50 +01:00
parent a37f784945
commit 2326ebfd63
5 changed files with 9 additions and 2 deletions

View File

@ -295,7 +295,7 @@ int main(int argc, char *argv[]) {
init_logging();
/* On release builds, disable SHM logging by default. */
shmlog_size = (is_debug_build() ? default_shmlog_size : 0);
shmlog_size = (is_debug_build() || strstr(argv[0], "i3-with-shmlog") != NULL ? default_shmlog_size : 0);
start_argv = argv;