Skip to content

Commit

Permalink
use different desktop file rather than modify
Browse files Browse the repository at this point in the history
  • Loading branch information
13r0ck committed Apr 20, 2023
1 parent dd0e887 commit 78d3a6d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -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

Expand All @@ -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"
Expand Down
1 change: 1 addition & 0 deletions debian/test-launch-system76-keyboard-configurator.install
@@ -0,0 +1 @@
usr/share/applications/com.system76.keyboardconfiguratorlaunchtest.desktop
8 changes: 0 additions & 8 deletions debian/test-launch-system76-keyboard-configurator.postinst

This file was deleted.

7 changes: 7 additions & 0 deletions 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;

0 comments on commit 78d3a6d

Please sign in to comment.