From 02048bf41d49f877cbd97610b56bcce3c21d43b7 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Thu, 10 Feb 2022 19:54:32 +0100 Subject: [PATCH] Adding desktop icon. --- ...g.desktop => me.sergiotarxz.openmg.desktop | 2 +- meson.build | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) rename resources/applications/openmg.desktop => me.sergiotarxz.openmg.desktop (92%) diff --git a/resources/applications/openmg.desktop b/me.sergiotarxz.openmg.desktop similarity index 92% rename from resources/applications/openmg.desktop rename to me.sergiotarxz.openmg.desktop index 8a564c5..a5f74a8 100644 --- a/resources/applications/openmg.desktop +++ b/me.sergiotarxz.openmg.desktop @@ -3,7 +3,7 @@ Name=OpenMG GenericName=Manga Reader Comment=A manga reader Comment[es]=A manga reader -Exec=OPENMGEXEC +Exec=openmg Icon=openmg Type=Application Terminal=false diff --git a/meson.build b/meson.build index e193194..2baa09d 100644 --- a/meson.build +++ b/meson.build @@ -51,6 +51,27 @@ if images_on_lists cArgs += ['-DLIST_IMAGES'] endif +# Install our icons in all the required sizes +icon_sizes = ['16', '24', '32', '48', '64', '128'] + +foreach i : icon_sizes + install_data( + 'openmg.svg', + install_dir: get_option('datadir') / 'icons' / 'hicolor' / i + 'x' + i / 'apps', + rename: meson.project_name() + '.svg' + ) + install_data( + 'openmg.svg', + install_dir: get_option('datadir') / 'icons' / 'hicolor' / i + 'x' + i + '@2' / 'apps', + rename: meson.project_name() + '.svg' + ) +endforeach + +install_data( + 'me.sergiotarxz.openmg.desktop', + install_dir: get_option('datadir') / 'applications', +) + executable('openmg', sources, dependencies : openmgdeps,