malcontent-control: Add a desktop file

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-12-19 13:38:51 +00:00
parent 1d8f7d665c
commit 8b62f08cf6
3 changed files with 34 additions and 0 deletions

View File

@ -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')

View File

@ -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;

View File

@ -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