Philip Withnall
282cf9c66b
libmalcontent: Set flag-like values for flag types
...
Previously these flags were using automatically assigned enum values,
which would have eventually resulted in having more than one bit set per
flag. Fix that before it happens by explicitly assigning flag-like
values. This was an oversight when they were first written.
This introduces no functional changes because both enums only had one
element so far.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-16 13:17:45 +00:00
Philip Withnall
5f2d4046ea
libmalcontent: Fix a minor typo in a comment
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-16 13:17:45 +00:00
Philip Withnall
c9d5713f83
po: Add missing file to POTFILES.in
...
This has been translatable for a while.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-16 13:17:45 +00:00
Philip Withnall
b2ffb160fc
malcontent-client: Print usernames rather than user IDs in output
...
This makes the output a little easier to interpret.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-16 13:17:45 +00:00
Philip Withnall
305129589e
malcontent-client: Fix typo in use of flags
...
This doesn’t actually change the behaviour, since the two types are
equivalent.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-16 13:09:23 +00:00
Philip Withnall
983e3bfa39
malcontent-client: Rename ‘check’ command to ‘check-app-filter’
...
Since it operates only on the app filter. This updates the documentation
too. No compatibility fallback is provided.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-16 13:09:23 +00:00
Philip Withnall
b3dbc07b92
malcontent-client: Rename ‘set’ command to ‘set-app-filter’
...
Since it operates only on the app filter. This doesn’t update the
documentation because none has been written for this command yet.
No compatibility fallback is provided.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-16 13:09:23 +00:00
Philip Withnall
2b180a9afd
malcontent-client: Rename ‘get’ command to ‘get-app-filter’
...
There’ll be other types of getting happening soon.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-16 13:09:16 +00:00
Philip Withnall
a7947d56e6
malcontent-client: Fix a minor typo in --help output
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-16 13:09:16 +00:00
Philip Withnall
aaa141f28b
Merge branch 'readme-deps' into 'master'
...
docs: Update list of dependencies in README.md
Closes #6
See merge request pwithnall/malcontent!17
2019-10-30 14:41:59 +00:00
Philip Withnall
3676f386d4
docs: Update list of dependencies in README.md
...
Spotted by Corentin Noël.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes : #6
2019-10-30 14:38:24 +00:00
Philip Withnall
c0cea72b6b
Merge branch 'uajain/improve-docs' into 'master'
...
docs: Improve documentation of "app-filter-changed" signal
See merge request pwithnall/malcontent!16
2019-06-20 07:45:42 +00:00
Umang Jain
b6b8873261
docs: Improve documentation of "app-filter-changed" signal
2019-06-18 19:23:17 +05:30
Philip Withnall
a897a4890b
Release version 0.4.0
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-17 11:57:35 +01:00
Philip Withnall
90f961dc74
Merge branch 'filter-content-type' into 'master'
...
Add support to filter by content type
See merge request pwithnall/malcontent!15
2019-06-14 16:02:04 +00:00
Andre Moreira Magalhaes
2c40458cd5
docs: Update malcontent-client manpage to mention new supported types
...
Mention content types and flatpak refs are also valid for 'check'
command arguments.
Signed-off-by: Andre Moreira Magalhaes <andre@endlessm.com>
2019-06-14 15:55:27 +00:00
Andre Moreira Magalhaes
9f39878c93
malcontent-client: Allow getting/setting filters by content type
...
Note that this change breaks backward compatibility when handling
content types if the passed argument also resolves to a valid path,
in which case an exception will be raised.
Signed-off-by: Andre Moreira Magalhaes <andre@endlessm.com>
2019-06-14 15:55:27 +00:00
Andre Moreira Magalhaes
2846db6529
malcontent-client: Refactor logic to determine type of argument for check/set
...
Note that this change breaks backward compatibility when handling
flatpak refs/IDs if the passed argument also resolves to a valid path,
in which case an exception will be raised.
Signed-off-by: Andre Moreira Magalhaes <andre@endlessm.com>
2019-06-14 15:55:27 +00:00
Andre Moreira Magalhaes
6c7c386ce2
malcontent-client: Disambiguate usage of path
...
The cmdline arguments may refer to both paths or flatpak refs so lets
disambiguate here for clarity.
Signed-off-by: Andre Moreira Magalhaes <andre@endlessm.com>
2019-06-14 15:55:27 +00:00
Andre Moreira Magalhaes
3800cd3818
libmalcontent: Add tests for filtering by content type
...
Signed-off-by: Andre Moreira Magalhaes <andre@endlessm.com>
2019-06-14 15:55:27 +00:00
Andre Moreira Magalhaes
da0e63fe99
libmalcontent: Add support for filtering by content type
...
This is useful for example if blacklisting all apps that can
handle certain content types is desired.
Signed-off-by: Andre Moreira Magalhaes <andre@endlessm.com>
2019-06-14 15:55:27 +00:00
Andre Moreira Magalhaes
bbd1b2bdff
libmalcontent: Rename app filter paths_blacklist member to blacklist
...
The filter blacklist also holds information on flatpak refs that are
blacklisted (apart from paths), so lets rename it for clarity.
Signed-off-by: Andre Moreira Magalhaes <andre@endlessm.com>
2019-06-14 15:55:27 +00:00
Philip Withnall
80288aa05a
Merge branch 'accounts-service-iface' into 'master'
...
tests: Use gdbus-codegen to drop hand-coded interface definitions
See merge request pwithnall/malcontent!2
2019-06-13 15:43:49 +00:00
Philip Withnall
418b79ab7f
tests: Use g_assert_cmpvariant() from GLib 2.60
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-13 16:40:52 +01:00
Philip Withnall
d9acee829a
tests: Use gdbus-codegen to drop hand-coded interface definitions
...
Bump our GLib dependency to 2.60 so we can use `gdbus-codegen
--interface-info-{body,header}` to generate interface definitions
dynamically rather than hand-coding them.
We actually need to depend on 2.60.1 so we get
https://gitlab.gnome.org/GNOME/glib/merge_requests/721 .
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-13 16:40:52 +01:00
Philip Withnall
a95ae0c182
ci: Temporarily disable code coverage support
...
lcov in F30 doesn’t support gcc in F30, which seems like a fairly
massive oversight.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-13 16:40:52 +01:00
Philip Withnall
cc53f88d8d
ci: Switch from Debian unstable to Fedora 30
...
Fedora has GLib ≥2.60.1, which we’ll need in an upcoming commit.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-13 16:34:14 +01:00
Philip Withnall
c96ca4575c
Merge branch 'docs' into 'master'
...
Improve README coverage of whole system design
See merge request pwithnall/malcontent!14
2019-06-12 16:11:18 +00:00
Philip Withnall
be12b67e7a
docs: Add missing dependency to README
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-12 07:54:59 +01:00
Philip Withnall
027ff10cc9
docs: Expand README coverage of how the whole system is designed
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-12 07:54:39 +01:00
Philip Withnall
bb36bf65c6
Merge branch 'quiet' into 'master'
...
Implement --quiet in the check and set subcommands of malcontent-client
See merge request pwithnall/malcontent!13
2019-06-11 14:02:55 +00:00
Philip Withnall
4051a0292a
malcontent-client: Implement --quiet for set subcommand
...
While not entirely quiet on error, the `set` subcommand is now quieter.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-11 15:01:08 +01:00
Philip Withnall
b14fa7b056
malcontent-client: Implement --quiet for check subcommand
...
When run with `--quiet`, the `check` subcommand will now print nothing.
It continues to exit with an appropriate exit status.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-06-11 15:00:26 +01:00
Philip Withnall
af44861281
Merge branch 'missing-field-initializers' into 'master'
...
libmalcontent: Add missing field initialisers to BUILDER_INIT
See merge request pwithnall/malcontent!12
2019-05-15 13:34:03 +00:00
Philip Withnall
432ba58f74
build: Enable -Wmissing-field-initializers
...
So we don’t regress on the previous commit in future.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-15 14:31:44 +01:00
Philip Withnall
30cbeda0ae
libmalcontent: Add missing field initialisers to BUILDER_INIT
...
This fixes use of libmalcontent in projects which build with
`-Wmissing-field-initializers`.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-15 14:31:02 +01:00
Philip Withnall
916022af9c
Release version 0.3.0
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-04-29 15:24:13 +01:00
Philip Withnall
6df7596b23
Merge branch 'top-level-header' into 'master'
...
libmalcontent: Add a top-level header file
See merge request pwithnall/malcontent!11
2019-04-25 15:58:26 +00:00
Philip Withnall
ad45f2813b
libmalcontent: Add a top-level header file
...
This just simplifies including the malcontent headers from projects
which use it.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-04-25 16:56:02 +01:00
Philip Withnall
126190a6a9
Merge branch '1-change-signals' into 'master'
...
libmalcontent: Add MctManager::app-filter-changed signal
Closes #1
See merge request pwithnall/malcontent!10
2019-04-24 12:47:55 +00:00
Philip Withnall
f49e0ecfc0
malcontent-client: Add a ‘monitor’ mode to monitor app filter changes
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-04-24 13:45:59 +01:00
Philip Withnall
2048f0d483
libmalcontent: Add MctManager::app-filter-changed signal
...
This is emitted when the app filter for a given user changes.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.freedesktop.org/pwithnall/malcontent/issues/1
2019-04-24 13:45:59 +01:00
Philip Withnall
68ebe8b568
libmalcontent: Factor getting/setting app filter into a manager
...
Create a new MctManager object which is used as the anchor for getting
or setting MctAppFilters.
This changes the API naming around quite a bit, but doesn’t really
change its behaviour or functionality — see the tests for examples of
how little things change.
This is one step on the way to emitting a signal (from MctManager) when
a user’s parental controls change.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.freedesktop.org/pwithnall/malcontent/issues/1
2019-04-24 13:45:59 +01:00
Philip Withnall
388dedbff2
Merge branch 'all-disabled' into 'master'
...
libmalcontent: Add MCT_APP_FILTER_ERROR_DISABLED error
See merge request pwithnall/malcontent!9
2019-04-24 10:13:02 +00:00
Philip Withnall
9fb9b75b57
libmalcontent: Drop an unused variable
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-04-24 11:06:28 +01:00
Philip Withnall
a378e28237
libmalcontent: Add MCT_APP_FILTER_ERROR_DISABLED error
...
This indicates that app filtering is disabled globally, perhaps because
it’s not installed in accountsservice properly.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-04-24 11:06:28 +01:00
Philip Withnall
9c31a3462a
Merge branch 'docs' into 'master'
...
docs: Expand README to be more informative
See merge request pwithnall/malcontent!8
2019-04-02 16:51:30 +00:00
Philip Withnall
a4f5cdd1d0
docs: Expand README to be more informative
...
Include various architectural-level details of the project.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-04-02 17:49:00 +01:00
Philip Withnall
a1d1d307f1
Merge branch 'version-bump' into 'master'
...
build: Post-release version bump
See merge request pwithnall/malcontent!7
2019-03-19 18:25:59 +00:00
Philip Withnall
85f24df835
build: Post-release version bump
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-03-19 18:11:29 +00:00