From 8b62f08cf66ef60c513889807bb5e714ab0f2afd Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 19 Dec 2019 13:38:51 +0000 Subject: [PATCH] malcontent-control: Add a desktop file Signed-off-by: Philip Withnall --- malcontent-control/meson.build | 21 +++++++++++++++++++ ...g.freedesktop.MalcontentControl.desktop.in | 12 +++++++++++ po/POTFILES.in | 1 + 3 files changed, 34 insertions(+) create mode 100644 malcontent-control/org.freedesktop.MalcontentControl.desktop.in diff --git a/malcontent-control/meson.build b/malcontent-control/meson.build index 156cc7e..17a9885 100644 --- a/malcontent-control/meson.build +++ b/malcontent-control/meson.build @@ -17,6 +17,27 @@ malcontent_control = executable('malcontent-control', install: true, ) +desktop_file = i18n.merge_file('desktop-file', + type: 'desktop', + input: '@0@.desktop.in'.format(application_id), + output: '@0@.desktop'.format(application_id), + po_dir: join_paths(meson.source_root(), 'po'), + install: true, + install_dir: join_paths(get_option('datadir'), 'applications'), +) + +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(), + ], + suite: ['malcontent-control'], + ) +endif + # FIXME: Add icons and tests #subdir('icons') #subdir('tests') diff --git a/malcontent-control/org.freedesktop.MalcontentControl.desktop.in b/malcontent-control/org.freedesktop.MalcontentControl.desktop.in new file mode 100644 index 0000000..d36ad39 --- /dev/null +++ b/malcontent-control/org.freedesktop.MalcontentControl.desktop.in @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=Parental Controls +Comment=Set parental controls and monitor usage by users +Exec=malcontent-control +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=org.freedesktop.MalcontentControl +Terminal=false +Type=Application +Categories=GTK;GNOME;System; +StartupNotify=true +# Translators: Search terms to find this application. Do NOT translate or localise the semicolons! The list MUST also end with a semicolon! +Keywords=parental controls;screen time;app restrictions;web browser restrictions;oars;usage;usage limit;kid;child; diff --git a/po/POTFILES.in b/po/POTFILES.in index 0b29360..46e0103 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -3,4 +3,5 @@ accounts-service/com.endlessm.ParentalControls.policy.in libmalcontent/manager.c malcontent-control/application.c +malcontent-control/org.freedesktop.MalcontentControl.desktop.in pam/pam_malcontent.c