From 9381da2bf0d8a37964cc4fe7572428515fb7ff97 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 26 Jan 2012 10:26:17 +0000 Subject: [PATCH] Also install /usr/share/applications/i3.desktop With this file, you can use the following command to run i3 in GNOME: gconftool-2 -s /desktop/gnome/session/required_components/windowmanager i3 --type string --- Makefile | 6 ++++-- i3.applications.desktop | 10 ++++++++++ i3.desktop => i3.xsession.desktop | 0 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 i3.applications.desktop rename i3.desktop => i3.xsession.desktop (100%) diff --git a/Makefile b/Makefile index 4e55b2e1..6e595de7 100644 --- a/Makefile +++ b/Makefile @@ -98,6 +98,7 @@ install: all $(INSTALL) -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/i3 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/include/i3 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/xsessions + $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/applications $(INSTALL) -m 0755 i3 $(DESTDIR)$(PREFIX)/bin/ $(INSTALL) -m 0755 i3-migrate-config-to-v4 $(DESTDIR)$(PREFIX)/bin/ $(INSTALL) -m 0755 i3-sensible-editor $(DESTDIR)$(PREFIX)/bin/ @@ -106,7 +107,8 @@ install: all test -e $(DESTDIR)$(SYSCONFDIR)/i3/config || $(INSTALL) -m 0644 i3.config $(DESTDIR)$(SYSCONFDIR)/i3/config test -e $(DESTDIR)$(SYSCONFDIR)/i3/config.keycodes || $(INSTALL) -m 0644 i3.config.keycodes $(DESTDIR)$(SYSCONFDIR)/i3/config.keycodes $(INSTALL) -m 0644 i3.welcome $(DESTDIR)$(SYSCONFDIR)/i3/welcome - $(INSTALL) -m 0644 i3.desktop $(DESTDIR)$(PREFIX)/share/xsessions/ + $(INSTALL) -m 0644 i3.xsession.desktop $(DESTDIR)$(PREFIX)/share/xsessions/i3.desktop + $(INSTALL) -m 0644 i3.applications.desktop $(DESTDIR)$(PREFIX)/share/applications/i3.desktop $(INSTALL) -m 0644 include/i3/ipc.h $(DESTDIR)$(PREFIX)/include/i3/ for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir install; \ @@ -116,7 +118,7 @@ dist: distclean [ ! -d i3-${VERSION} ] || rm -rf i3-${VERSION} [ ! -e i3-${VERSION}.tar.bz2 ] || rm i3-${VERSION}.tar.bz2 mkdir i3-${VERSION} - cp i3-migrate-config-to-v4 generate-command-parser.pl i3-sensible-* i3.config.keycodes DEPENDS GOALS LICENSE PACKAGE-MAINTAINER RELEASE-NOTES-${VERSION} i3.config i3.desktop i3.welcome pseudo-doc.doxygen i3-wsbar Makefile i3-${VERSION} + cp i3-migrate-config-to-v4 generate-command-parser.pl i3-sensible-* i3.config.keycodes DEPENDS GOALS LICENSE PACKAGE-MAINTAINER RELEASE-NOTES-${VERSION} i3.config i3.xsession.desktop i3.applications.desktop i3.welcome pseudo-doc.doxygen i3-wsbar Makefile i3-${VERSION} cp -r src libi3 i3-msg i3-nagbar i3-config-wizard i3bar i3-dump-log yajl-fallback include man parser-specs i3-${VERSION} # Only copy toplevel documentation (important stuff) mkdir i3-${VERSION}/docs diff --git a/i3.applications.desktop b/i3.applications.desktop new file mode 100644 index 00000000..4dfa7e07 --- /dev/null +++ b/i3.applications.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=i3 +Comment=improved dynamic tiling window manager +Exec=i3 +X-GNOME-WMName=i3 +X-GNOME-Autostart-Phase=WindowManager +X-GNOME-Provides=windowmanager +X-GNOME-Autostart-Notify=false diff --git a/i3.desktop b/i3.xsession.desktop similarity index 100% rename from i3.desktop rename to i3.xsession.desktop -- 2.39.5