From: Victor Toso <me@xxxxxxxxxxxxxx> Spicy is just a testing tool but together with flatpak, it is nicer to have a desktop entry shipped with it. I don't see an issue in shipping this as long as we always keep in mind that it is a testing too, not a fully supported Spice client such as remote-viewer. Signed-off-by: Victor Toso <victortoso@xxxxxxxxxx> --- data/meson.build | 20 ++++++++++++++++++++ data/org.spicespace.spicy.desktop.in | 11 +++++++++++ data/org.spicespace.spicy.json | 1 + 3 files changed, 32 insertions(+) create mode 100644 data/org.spicespace.spicy.desktop.in diff --git a/data/meson.build b/data/meson.build index ba549eb..1664000 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,3 +1,23 @@ +i18n = import ('i18n') + +desktop_file = i18n.merge_file('desktop-file', + input: 'org.spicespace.spicy.desktop.in', + output: 'org.spicespace.spicy.desktop', + install: true, + install_dir: join_paths(spice_gtk_datadir, 'applications'), + po_dir: '../po', + type: 'desktop' +) + +desktop_file_validate = find_program ('desktop-file-validate', required: false) +if desktop_file_validate.found() + test('validate-desktop', + desktop_file_validate, + args: [ + desktop_file.full_path() + ]) +endif + if spice_gtk_has_polkit install_data('org.spice-space.lowlevelusbaccess.policy', install_dir : spice_gtk_policy_dir) diff --git a/data/org.spicespace.spicy.desktop.in b/data/org.spicespace.spicy.desktop.in new file mode 100644 index 0000000..fc4d2c8 --- /dev/null +++ b/data/org.spicespace.spicy.desktop.in @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Spicy +Comment=Test spice-gtk +Keywords=spice; +Exec=spicy %U +StartupNotify=false +Terminal=false +Type=Application +Icon=org.gnome.Spicy +Categories=Network;RemoteAccess; +MimeType=x-scheme-handler/spice;x-scheme-handler/spice+unix;x-scheme-handler/spice+tls; diff --git a/data/org.spicespace.spicy.json b/data/org.spicespace.spicy.json index 90ddf2e..8bc86d5 100644 --- a/data/org.spicespace.spicy.json +++ b/data/org.spicespace.spicy.json @@ -5,6 +5,7 @@ "sdk": "org.gnome.Sdk", "command": "spicy", "tags": ["devel", "development", "nightly"], + "desktop-file-name-suffix" : " (Nightly)", "finish-args": [ "--share=ipc", "--socket=x11", -- 2.19.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel