Commit d7879970 authored by Julian Richen's avatar Julian Richen Committed by Adrien Plazas
Browse files

meson: Improve and validate desktop entry

This improves the desktop entry a bit and adds a test to validate it.
parent 5dec5e9b
datadir = get_option('datadir') datadir = get_option('datadir')
# Desktop file
install_data('sm.puri.Calls.desktop', install_data('sm.puri.Calls.desktop',
install_dir : join_paths(datadir, 'applications')) install_dir : join_paths(datadir, 'applications'))
desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,
args: ['sm.puri.Calls.desktop']
)
endif
# Icons
install_data('sm.puri.Calls.png', install_data('sm.puri.Calls.png',
install_dir : join_paths(datadir, 'icons', 'hicolor', '256x256', 'apps')) install_dir : join_paths(datadir, 'icons', 'hicolor', '256x256', 'apps'))
[Desktop Entry] [Desktop Entry]
Name=Calls Name=Calls
GenericName=Phone GenericName=Phone
Comment=Make telephone calls Comment=A phone dialer and call handler
# Translators: These are desktop search terms. Do not translate semicolons, end line with a semicolon. # Translators: These are desktop search terms. Do not translate semicolons, end line with a semicolon.
Keywords=Telephone;Call;Phone;Dial;Dialer;PTSN; Keywords=Telephone;Call;Phone;Dial;Dialer;PTSN;
# Translators: Do NOT translate or transliterate this text (this is an icon file name)! # Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=sm.puri.Calls Icon=sm.puri.Calls
TryExec=calls TryExec=calls
Exec=calls Exec=calls %U
Type=Application Type=Application
StartupNotify=true
Terminal=false Terminal=false
Categories=GNOME;GTK;Telephony; Categories=GNOME;GTK;Telephony;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment