aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolf2019-12-30 19:37:28 +0100
committerWolf2019-12-30 19:37:28 +0100
commit35a4f1b81fcbcade077be1da19264717c70fde3b (patch)
tree5d0c832be3d1a4a04a15e697ac23094ddaa73dac
parentf3fad3de0863ed0571b884980132f8e80612776f (diff)
downloadweltschmerz-35a4f1b81fcbcade077be1da19264717c70fde3b.tar.gz
Add desktop file
Diffstat (limited to '')
-rw-r--r--Makefile3
-rw-r--r--meson.build1
-rw-r--r--weltschmerz.desktop9
3 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1f61888..ad973c7 100644
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,10 @@ weltschmerz: weltschmerz.vala terminal.vala config.vala resources.c
resources.c: resources.xml terminal.ui terminal.css
glib-compile-resources $< --target=$@ --generate-source
-install: weltschmerz weltschmerz.1
+install: weltschmerz weltschmerz.1 weltschmerz.desktop
install -D -m 755 -t '${DESTDIR}${BINDIR}' weltschmerz
install -D -m 644 -t '${DESTDIR}${MANDIR}/man1' weltschmerz.1
+ install -D -m 644 -t '${DESTDIR}${DATAROOTDIR}/applications' weltschmerz.desktop
clean:
rm -f weltschmerz resources.c
diff --git a/meson.build b/meson.build
index 0115018..ea90630 100644
--- a/meson.build
+++ b/meson.build
@@ -17,3 +17,4 @@ sources += gnome.compile_resources('resources', 'resources.xml')
executable('weltschmerz', sources, dependencies: dependencies, install: true)
install_man('weltschmerz.1')
+install_data('weltschmerz.desktop', install_dir: join_paths(get_option('datadir'), 'applications'))
diff --git a/weltschmerz.desktop b/weltschmerz.desktop
new file mode 100644
index 0000000..2b61982
--- /dev/null
+++ b/weltschmerz.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=weltschmerz
+Comment=A terminal emulator in Vala
+Type=Application
+Exec=weltschmerz
+TryExec=weltschmerz
+Icon=utilities-terminal
+Keywords=shell;prompt;command;commandline;cmd;
+Categories=GTK;System;TerminalEmulator;