- Nov 10, 2020
-
-
Simon McVittie authored
This includes: * a public interface implemented by input device monitors * a public interface to be implemented by the input devices they signal * a mock implementation for unit-testing * a unit test for the API * a simple implementation in terms of inotify on /dev * a monitor that can print input devices in JSON format on stdout, and optionally monitor them Implementations in terms of udev, SDL, or a portal service are not yet included. Details of the devices, beyond their paths in /dev and /sys, are also not included. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Preparation for !158 See merge request !164
-
Simon McVittie authored
We'll use this for the uevent blob in input devices, because that's much easier to read than a single string with escaped newlines. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
json_array_get_string_element() raises a critical warning if the element exists but isn't a string. json_node_get_string() is more tolerant. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
It seems misleading to have a function with json_array in the name that takes a JsonObject. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
utils.c is getting larger and more miscellaneous than I'd prefer. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Nov 09, 2020
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
build: Generate a dependency for libs-r-t's generated headers See merge request !163
-
Simon McVittie authored
There's currently only one generated header, enums.h, but we could add more in future. We need to make sure the test_utils static library depends on that generated header, otherwise it could be compiled before the header itself is generated, leading to intermittent and unreproducible build failures (for some reason scout i386 seems especially prone to this). Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Preparation for input device interface See merge request !162
-
Simon McVittie authored
Start using the new JSON-GLib functions "*_with_default" See merge request !161
-
Ludovico de Nittis authored
JSON-Glib 1.6.0 introduced new functions to get members from a JSON object with a default fallback value. This allows us to avoid manually checking the existence of a member. The functions that we currently need, have been backported to allow the execution on systems with a JSON-GLIB version older than the 1.6.0 Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Oct 29, 2020
-
-
Simon McVittie authored
This will let us test input device monitoring that looks directly at the devices in /dev and /sys. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
I added this to GLib at the beginning of the 2.68 cycle. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Oct 26, 2020
-
-
Simon McVittie authored
Add xdg-portal info to the s-r-s-i report See merge request steam/steam-runtime-tools!154
-
Ludovico de Nittis authored
Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
Print in the steam-runtime-system-info report the information we know about the xdg-portal support. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Simon McVittie authored
runtime: Set LD_LIBRARY_PATH before using capsule-capture-libs See merge request steam/steam-runtime-tools!157
-
Ludovico de Nittis authored
With this helper we are able to check if `xdg-desktop-portal` is currently installed and working. It also checks if there is at least a portal backend implementation. It returns 0 if `xdg-desktop-portal` is available and there is at least a backend implementation. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
At this stage we expect to have `LD_LIBRARY_PATH` set to the `SYSTEM_LD_LIBRARY_PATH` of `steam.sh`. This means that we should treat the `LD_LIBRARY_PATH` entries as OS-level search path too. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
If necessary, in runtime.c we should access the original environment instead of the global one, because it might have been edited. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Oct 23, 2020
-
-
Simon McVittie authored
Disable GIO modules without provoking scary warnings (#32) See merge request steam/steam-runtime-tools!156
-
- Oct 22, 2020
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This lets them access non-public API, and means there's one less thing that can go wrong. The cost is about 500K, which is much smaller than a Steam Runtime. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
The code under test was already moved, but the tests couldn't follow until their executable was statically linked to libsteam-runtime-tools, which it now is. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
We no longer need to, because the test is now linked statically. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This test exercises internal functions that shouldn't really be visible in the ABI. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Now that GIO_MODULE_DIR has been backported into scout's GLib, we can disable GIO modules completely, instead of loading them but then not using them. This avoids some misleading warnings (#32). This will not be completely effective on non-Debian systems until we also patch scout's GLib to make GIO_MODULE_DIR take precedence over the hard-coded legacy search path /usr/lib/gio/modules. The unit test for this is still in tests/pressure-vessel/utils.c for now. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Oct 19, 2020
-
-
Ludovico de Nittis authored
Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Simon McVittie authored
wrap: Set all the env vars before building the locking list See merge request steam/steam-runtime-tools!155
-
Ludovico de Nittis authored
The list of locked environment variables should include all the vars that we decided to want, or avoid. Also use `extra_locked_vars_to_unset` everywhere instead of directly unsetting a variable. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Oct 08, 2020
-
-
Ludovico de Nittis authored
Add support for Arch Linux /etc/locale.gen Closes #5 See merge request steam/steam-runtime-tools!151
-
Ludovico de Nittis authored
Fixes #5 Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Oct 07, 2020
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-