[gnome-games] meson: Build the desktop entry MIME type list
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] meson: Build the desktop entry MIME type list
- Date: Fri, 11 Dec 2020 08:39:04 +0000 (UTC)
commit 40c447493a5e8c4f78c5bdad11096bb5e550e9f8
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Dec 11 09:09:50 2020 +0100
meson: Build the desktop entry MIME type list
This makes it immensely more maintainable.
data/meson.build | 44 ++++++++++++++++++++++++++++++++++++++
data/org.gnome.Games.desktop.in.in | 2 +-
2 files changed, 45 insertions(+), 1 deletion(-)
---
diff --git a/data/meson.build b/data/meson.build
index e84d863d..20bcbb8a 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,5 +1,49 @@
+mime_types = [
+ 'application/vnd.nintendo.snes.rom',
+ 'application/x-amiga-disk-format',
+ 'application/x-atari-2600-rom',
+ 'application/x-atari-7800-rom',
+ 'application/x-atari-lynx-rom',
+ 'application/x-cue',
+ 'application/x-discjuggler-cd-image',
+ 'application/x-doom-wad',
+ 'application/x-fds-disk',
+ 'application/x-gameboy-color-rom',
+ 'application/x-gameboy-rom',
+ 'application/x-gamecube-rom',
+ 'application/x-gamegear-rom',
+ 'application/x-gba-rom',
+ 'application/x-gd-rom-cue',
+ 'application/x-genesis-32x-rom',
+ 'application/x-genesis-rom',
+ 'application/x-love-game',
+ 'application/x-mame-rom',
+ 'application/x-ms-dos-executable',
+ 'application/x-n64-rom',
+ 'application/x-neo-geo-pocket-color-rom',
+ 'application/x-neo-geo-pocket-rom',
+ 'application/x-nes-rom',
+ 'application/x-nintendo-3ds-executable',
+ 'application/x-nintendo-3ds-rom',
+ 'application/x-nintendo-ds-rom',
+ 'application/x-pc-engine-rom',
+ 'application/x-playstation-rom',
+ 'application/x-saturn-rom',
+ 'application/x-sega-cd-rom',
+ 'application/x-sega-pico-rom',
+ 'application/x-sg1000-rom',
+ 'application/x-sms-rom',
+ 'application/x-virtual-boy-rom',
+ 'application/x-wii-rom',
+ 'application/x-wii-wad',
+ 'application/x-wonderswan-color-rom',
+ 'application/x-wonderswan-rom',
+ 'application/zip',
+]
+
desktop_conf = configuration_data()
desktop_conf.set('icon', application_id)
+desktop_conf.set('mimetypes', ';'.join(mime_types) + ';')
desktop_file = i18n.merge_file ('desktop-file',
type: 'desktop',
input: configure_file(
diff --git a/data/org.gnome.Games.desktop.in.in b/data/org.gnome.Games.desktop.in.in
index bae7d866..917e2004 100644
--- a/data/org.gnome.Games.desktop.in.in
+++ b/data/org.gnome.Games.desktop.in.in
@@ -13,4 +13,4 @@ Type=Application
StartupNotify=true
DBusActivatable=true
Categories=GNOME;GTK;Player;Game;
-MimeType=application/vnd.nintendo.snes.rom;application/x-amiga-disk-format;application/x-atari-2600-rom;application/x-atari-7800-rom;application/x-atari-lynx-rom;application/x-cue;application/x-discjuggler-cd-image;application/x-doom-wad;application/x-fds-disk;application/x-gameboy-color-rom;application/x-gameboy-rom;application/x-gamecube-rom;application/x-gamegear-rom;application/x-gba-rom;application/x-gd-rom-cue;application/x-genesis-32x-rom;application/x-genesis-rom;application/x-love-game;application/x-mame-rom;application/x-ms-dos-executable;application/x-n64-rom;application/x-neo-geo-pocket-color-rom;application/x-neo-geo-pocket-rom;application/x-nes-rom;application/x-nintendo-3ds-executable;application/x-nintendo-3ds-rom;application/x-nintendo-ds-rom;application/x-pc-engine-rom;application/x-playstation-rom;application/x-saturn-rom;application/x-sega-cd-rom;application/x-sega-pico-rom;application/x-sg1000-rom;application/x-sms-rom;application/x-virtual-boy-rom;application/x
-wii-rom;application/x-wii-wad;application/x-wonderswan-color-rom;application/x-wonderswan-rom;application/zip;
+MimeType=@mimetypes@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]