diff --git a/Makefile b/Makefile index 25cbe9ed..f8c62dfb 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ PKGCONFIG = $(PACKAGE).pc BIN = system76-keyboard-configurator FFI = lib$(PACKAGE).so APPDATA = $(APPID).appdata.xml +TEST_LAUNCH_DESKTOP = $(APPID)launchtest.desktop DESKTOP = $(APPID).desktop ICON = data/icons/scalable/apps/$(APPID).svg @@ -45,6 +46,7 @@ install: install -Dm0644 target/$(TARGET)/$(FFI) "$(DESTDIR)$(libdir)/$(FFI)" install -Dm0644 target/$(PKGCONFIG) "$(DESTDIR)$(libdir)/pkgconfig/$(PKGCONFIG)" install -Dm0644 ffi/$(PACKAGE).h "$(DESTDIR)$(includedir)/$(PACKAGE).h" + install -Dm0644 "linux/$(TEST_LAUNCH_DESKTOP)" "$(DESTDIR)$(datadir)/applications/$(TEST_LAUNCH_DESKTOP)" install -Dm0644 "linux/$(DESKTOP)" "$(DESTDIR)$(datadir)/applications/$(DESKTOP)" install -Dm0644 "linux/$(APPDATA)" "$(DESTDIR)$(datadir)/metainfo/$(APPDATA)" install -Dm0644 $(ICON) "$(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/$(APPID).svg" diff --git a/debian/test-launch-system76-keyboard-configurator.install b/debian/test-launch-system76-keyboard-configurator.install new file mode 100644 index 00000000..8bf52096 --- /dev/null +++ b/debian/test-launch-system76-keyboard-configurator.install @@ -0,0 +1 @@ +usr/share/applications/com.system76.keyboardconfiguratorlaunchtest.desktop diff --git a/debian/test-launch-system76-keyboard-configurator.postinst b/debian/test-launch-system76-keyboard-configurator.postinst deleted file mode 100644 index 0246fc7d..00000000 --- a/debian/test-launch-system76-keyboard-configurator.postinst +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -set -e - -DESKTOP_FILE="/usr/share/applications/com.system76.keyboardconfigurator.desktop" - -sed -i 's/^Exec=system76-keyboard-configurator$/Exec=system76-keyboard-configurator --launch-test/' "$DESKTOP_FILE" - -exit 0 diff --git a/linux/com.system76.keyboardconfiguratorlaunchtest.desktop b/linux/com.system76.keyboardconfiguratorlaunchtest.desktop new file mode 100644 index 00000000..1f1e5f50 --- /dev/null +++ b/linux/com.system76.keyboardconfiguratorlaunchtest.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=System76 Keyboard Tester +Exec=system76-keyboard-configurator --launch-test +Icon=com.system76.keyboardconfigurator +Type=Application +StartupNotify=true +Categories=Utility;