summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gdesktopappinfo: Move launched applications into transient scopebenzea/systemd-transient-scopeBenjamin Berg2022-03-224-119/+764
| | | | | | | | | | | | | | | | | | Try to move the spawned executable into its own systemd scope. To avoid possible race conditions and ensure proper accounting, we delay the execution of the real command until after the DBus call to systemd has finished. From the two approaches we can take here, this is better in the sense that we have a child that the API consumer can watch. API consumers should not be doing this, however, gnome-session needs to watch children during session startup. Until gnome-session is fixed, we will not be able to change this. The alternative approach is to delegate launching itself to systemd by creating a transient .service unit instead. This is cleaner and has e.g. the advantage that systemd will take care of log redirection and similar issues.
* tests: Use file monitoring to wait for file creationBenjamin Berg2022-03-211-12/+8
| | | | | | | Doing this is faster and also means that the mainloop will be iterated while the test is waiting for file creation. The mainloop iteration is necessary as GLib may need to wait for a DBus reply from systemd before the application is executed.
* Merge branch 'wip/carlosg/gdatetime-before-y1000' into 'main'Philip Withnall2022-03-212-2/+18
|\ | | | | | | | | glib: Format GDateTime ISO8601 years as %C%y See merge request GNOME/glib!2563
| * glib: Add tests for far away GDateTimesCarlos Garnacho2022-03-211-0/+16
| | | | | | | | | | Poke near the limits (years 9 and 9990) to ensure these also result in a correct ISO8601 format.
| * glib: Format GDateTime ISO8601 years as %C%yCarlos Garnacho2022-03-211-2/+2
|/ | | | | | | | | | The current use of %Y does not take into account that %Y will not pad the year with 0's, meanwhile ISO8601 does expect a full YYYY format for all dates. This breaks the formatting with dates prior to the year 1000. Split this into %C%y so 2-digit, 0-padded century and year are printed separately, this gives the expected YYYY format.
* Update Bulgarian translationAlexander Shopov2022-03-211-325/+418
|
* Merge branch 'w32-skips' into 'main'Philip Withnall2022-03-218-9/+100
|\ | | | | | | | | Various win32 tests skip & fixes See merge request GNOME/glib!2540
| * gio/tests/codegen: skip tests that require /dev/stdout on win32Marc-André Lureau2022-03-181-0/+18
| | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * glib/tests: disable a racy check on mainloop testMarc-André Lureau2022-03-181-4/+7
| | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * glib/tests: skip a failing test with a FIXMEMarc-André Lureau2022-03-181-0/+5
| | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * glib/tests: fix random failure due to roundingMarc-André Lureau2022-03-181-1/+1
| | | | | | | | | | | | GLib:ERROR:../glib/tests/timer.c:41:test_timer_basic: assertion failed (micros == ((guint64)(elapsed * 1e6)) % 1000000): (11 == 10) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * tests/socket: skip a test if AF_UNIX is not supported on win32Marc-André Lureau2022-03-181-0/+27
| | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * gio/tests: skip filemonitor tests on win32Marc-André Lureau2022-03-181-0/+29
| | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * tests: enable defaultvalue and debugcontroller on win32Marc-André Lureau2022-03-181-4/+8
| | | | | | | | | | | | The test still requires dbus-daemon. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * tests: skip appmonitor test on win32Marc-André Lureau2022-03-181-0/+5
| | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* | Merge branch 'move_g_basename_test' into 'main'Philip Withnall2022-03-212-13/+16
|\ \ | | | | | | | | | | | | Move unit test on g_basename() function to glib/tests/fileutils.c See merge request GNOME/glib!2558
| * | Move unit test on g_basename() function to glib/tests/fileutils.cEmmanuel Fleury2022-03-172-13/+16
| | | | | | | | | | | | | | | | | | g_basename() function is defined in glib/gfileutils.c which is tested by glib/tests/fileutils.c test set. Until now, g_basename() test was in glib/test/utils.c. This patch move the unit test to the proper file.
* | | Merge branch 'move_relation_tests' into 'main'Philip Withnall2022-03-213-44/+36
|\ \ \ | | | | | | | | | | | | | | | | Move tests/relation-test.c to glib/tests/relation.c See merge request GNOME/glib!2559
| * | | Move tests/relation-test.c to glib/tests/relation.cEmmanuel Fleury2022-03-173-1/+3
| | | | | | | | | | | | | | | | Related to issue #1434
| * | | Convert test/relation-test.c to glib test frameworkEmmanuel Fleury2022-03-171-44/+34
| |/ /
* | | Fix invalid markup in Bulgarian translationAndre Klapper2022-03-191-1/+1
| | |
* | | Update Bulgarian translationAlexander Shopov2022-03-191-1665/+3163
| | |
* | | Merge branch 'wip/pwithnall/update-other-cis' into 'main'Sebastian Dröge2022-03-184-10/+17
|\ \ \ | | | | | | | | | | | | | | | | ci: Update Coverity, mingw and Android CI images to Fedora 34 See merge request GNOME/glib!2560
| * | | ci: Update Android NDK image to Fedora 34Philip Withnall2022-03-182-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don’t take the opportunity to add support for Android API 31 or update the version of the Android NDK we’re using to r23b, though, as I couldn’t quickly get that to work and ran out of time. Bumping the Fedora version will at least reduce our CI repository disk usage through sharing the base image. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2605
| * | | ci: Update mingw image to Fedora 34Philip Withnall2022-03-182-3/+2
| | | | | | | | | | | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
| * | | ci: Update Coverity image to Fedora 34 and latest Coverity Scan toolPhilip Withnall2022-03-182-3/+2
| | | | | | | | | | | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | | | Merge branch 'power-profile-monitor-docs' into 'main'Philip Withnall2022-03-181-3/+3
|\ \ \ \ | |/ / / |/| | | | | | | | | | | gpowerprofilemonitor: Tweak wording of documentation to make more sense See merge request GNOME/glib!2534
| * | | gpowerprofilemonitor: Tweak wording of documentation to make more sensePhilip Withnall2022-03-041-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | | | Merge branch 'wip/pwithnall/update-fedora-ci' into 'main'Sebastian Dröge2022-03-182-8/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | ci: Update the Fedora CI image to Fedora 34 See merge request GNOME/glib!2543
| * | | | ci: Update the Fedora CI image to Fedora 34Philip Withnall2022-03-082-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the oldest still-supported version of Fedora. It no longer ships gamin. This should fix the installed-tests, which rely on version 0.19 of python-dbusmock. Fedora 33 only had 0.18. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | | | | Merge branch 'gdbus-method-invocation-leak' into 'main'Sebastian Dröge2022-03-183-26/+430
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | gdbusmethodinvocation: Fix a leak on an early return path See merge request GNOME/glib!2557
| * | | | | tests: Add unit tests for GDBusMethodInvocationPhilip Withnall2022-03-172-0/+403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These should cover everything to do with returning a value or error from a `GDBusMethodInvocation` object. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
| * | | | | gdbusmethodinvocation: Drop redundant quote from warning messagePhilip Withnall2022-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
| * | | | | gdbusmethodinvocation: Fix dead code for type checking GetAllPhilip Withnall2022-03-171-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `property_info` is only ever set for `Get` and `Set` calls, not for `GetAll`, as it only represents a single property. So this code was never reachable. Move it out so that it is reachable. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
| * | | | | gdbusmethodinvocation: Fix a leak on an early return pathPhilip Withnall2022-03-171-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When doing an early return from `g_dbus_method_invocation_return_*()` due to passing in the wrong type (or no return value when one was expected), the parameters were not correctly sunk and were leaked. Fix that. A unit test will be added in a following commit. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Coverity CID: #1474536
* | | | | | Merge branch 'strv-contains' into 'main'Sebastian Dröge2022-03-184-94/+37
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | gdbusconnection: Use g_strv_contains() rather than a home-grown version See merge request GNOME/glib!2556
| * | | | | tests: Use g_strv_contains() rather than a home-grown versionPhilip Withnall2022-03-173-76/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The public `g_strv_contains()` API didn’t exist at the time this code was originally written. Now, happily, it does. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
| * | | | | gdbusconnection: Use g_strv_contains() rather than a home-grown versionPhilip Withnall2022-03-171-18/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The public `g_strv_contains()` API didn’t exist at the time this code was originally written. Now, happily, it does. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* | | | | Merge branch 'w32-contenttype' into 'main'Philip Withnall2022-03-172-20/+51
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Various contenttype-related test fixes on win32 See merge request GNOME/glib!2499
| * | | | | tests: skip check anything is octet-streamMarc-André Lureau2022-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Like on Mac, the contenttype database can't say that much yet. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * | | | | tests: skip test_tree on win32Marc-André Lureau2022-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently it simply crashes, because types == NULL. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * | | | | gio/tests: fix test_icon on win32Marc-André Lureau2022-03-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * | | | | tests: use Windows mime type for executableMarc-André Lureau2022-03-091-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to https://stackoverflow.com/a/43916291/1277510 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * | | | | gio: relax g_content_type_is_a on win32Marc-André Lureau2022-03-091-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is quite gross, but it looks like the whole content-type code on Windows is similar. Pass test_subtype. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * | | | | gio/tests: fix various content type guesses on win32Marc-André Lureau2022-03-091-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * | | | | gio/tests: fix content type guess for directory on win32Marc-André Lureau2022-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * | | | | gio: implement simple directory type detectionMarc-André Lureau2022-03-091-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a logic similar to what is done for Unix, based on trailing path separator. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * | | | | gio: return '*' content type on win32 from unknown mimeMarc-André Lureau2022-03-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes test_unknown. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
| * | | | | gio: fix OOB string access if filename is emptyMarc-André Lureau2022-02-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* | | | | | Merge branch 'cleanup-warnings-split-6' into 'main'Philip Withnall2022-03-1710-45/+47
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup warnings split 6 See merge request GNOME/glib!2495