enable shmlog when invoked as i3-with-shmlog, install symlink + .desktop file
This commit is contained in:
parent
a37f784945
commit
2326ebfd63
2
Makefile
2
Makefile
@ -30,7 +30,7 @@ dist: distclean
|
|||||||
[ ! -d i3-${VERSION} ] || rm -rf i3-${VERSION}
|
[ ! -d i3-${VERSION} ] || rm -rf i3-${VERSION}
|
||||||
[ ! -e i3-${VERSION}.tar.bz2 ] || rm i3-${VERSION}.tar.bz2
|
[ ! -e i3-${VERSION}.tar.bz2 ] || rm i3-${VERSION}.tar.bz2
|
||||||
mkdir i3-${VERSION}
|
mkdir i3-${VERSION}
|
||||||
cp i3-migrate-config-to-v4 generate-command-parser.pl i3-sensible-* i3-dmenu-desktop i3.config.keycodes DEPENDS LICENSE PACKAGE-MAINTAINER RELEASE-NOTES-${VERSION} i3.config i3.xsession.desktop i3.applications.desktop pseudo-doc.doxygen common.mk Makefile i3-${VERSION}
|
cp i3-migrate-config-to-v4 generate-command-parser.pl i3-sensible-* i3-dmenu-desktop i3.config.keycodes DEPENDS LICENSE PACKAGE-MAINTAINER RELEASE-NOTES-${VERSION} i3.config i3.xsession.desktop i3-with-shmlog.xsession.desktop i3.applications.desktop pseudo-doc.doxygen common.mk Makefile i3-${VERSION}
|
||||||
cp -r src libi3 i3-msg i3-nagbar i3-config-wizard i3bar i3-dump-log yajl-fallback include man parser-specs testcases i3-${VERSION}
|
cp -r src libi3 i3-msg i3-nagbar i3-config-wizard i3bar i3-dump-log yajl-fallback include man parser-specs testcases i3-${VERSION}
|
||||||
# Only copy toplevel documentation (important stuff)
|
# Only copy toplevel documentation (important stuff)
|
||||||
mkdir i3-${VERSION}/docs
|
mkdir i3-${VERSION}/docs
|
||||||
|
@ -2,6 +2,7 @@ UNAME=$(shell uname)
|
|||||||
DEBUG=1
|
DEBUG=1
|
||||||
COVERAGE=0
|
COVERAGE=0
|
||||||
INSTALL=install
|
INSTALL=install
|
||||||
|
LN=ln
|
||||||
ifndef PREFIX
|
ifndef PREFIX
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
endif
|
endif
|
||||||
|
5
i3-with-shmlog.xsession.desktop
Normal file
5
i3-with-shmlog.xsession.desktop
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=i3 (with debug log)
|
||||||
|
Comment=improved dynamic tiling window manager
|
||||||
|
Exec=i3-with-shmlog
|
||||||
|
Type=Application
|
@ -74,6 +74,7 @@ install-i3: i3
|
|||||||
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/xsessions
|
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/xsessions
|
||||||
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/applications
|
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/applications
|
||||||
$(INSTALL) -m 0755 i3 $(DESTDIR)$(PREFIX)/bin/
|
$(INSTALL) -m 0755 i3 $(DESTDIR)$(PREFIX)/bin/
|
||||||
|
$(LN) -s i3 $(DESTDIR)$(PREFIX)/bin/i3-with-shmlog
|
||||||
$(INSTALL) -m 0755 i3-migrate-config-to-v4 $(DESTDIR)$(PREFIX)/bin/
|
$(INSTALL) -m 0755 i3-migrate-config-to-v4 $(DESTDIR)$(PREFIX)/bin/
|
||||||
$(INSTALL) -m 0755 i3-sensible-editor $(DESTDIR)$(PREFIX)/bin/
|
$(INSTALL) -m 0755 i3-sensible-editor $(DESTDIR)$(PREFIX)/bin/
|
||||||
$(INSTALL) -m 0755 i3-sensible-pager $(DESTDIR)$(PREFIX)/bin/
|
$(INSTALL) -m 0755 i3-sensible-pager $(DESTDIR)$(PREFIX)/bin/
|
||||||
|
@ -295,7 +295,7 @@ int main(int argc, char *argv[]) {
|
|||||||
init_logging();
|
init_logging();
|
||||||
|
|
||||||
/* On release builds, disable SHM logging by default. */
|
/* 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;
|
start_argv = argv;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user