Skip to content
Snippets Groups Projects
  1. Jul 28, 2022
  2. Jul 21, 2022
  3. Jun 22, 2022
  4. Jun 15, 2022
  5. Jun 14, 2022
  6. Apr 07, 2022
  7. Mar 31, 2022
  8. Feb 22, 2022
  9. Jan 27, 2022
  10. Nov 08, 2021
  11. Aug 03, 2021
  12. Jun 10, 2021
  13. May 20, 2021
  14. Apr 14, 2021
  15. Apr 12, 2021
  16. Feb 26, 2021
    • Simon McVittie's avatar
      launch: Add --app-path, --usr-path · 7730a4cf
      Simon McVittie authored
      These are the client side for
      <https://github.com/flatpak/flatpak/pull/4018
      
      >. We'll use them to put
      the Steam Runtime on /usr and an empty directory on /app.
      
      Because the corresponding Flatpak change has not been merged, make it
      fail unless an undocumented environment variable has been set.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      7730a4cf
    • Simon McVittie's avatar
      pressure-vessel: Put apt-style severity prefixes on messages · dbf21961
      Simon McVittie authored
      
      These indicate which lines are harmless and which lines are really bad,
      without taking up too much space.
      
      The mapping from GLib log level to message is not 100% obvious, because
      G_LOG_LEVEL_ERROR is "worse than" an error. We diagnose "can't happen"
      situations (assertion failures, etc.) as "Internal error". Ideally,
      users should never see these: they indicate a bug.
      
      For situations that will cause pressure-vessel to exit with an error,
      introduce a new log level flag PV_LOG_LEVEL_FAILURE and map it to the
      apt-style "E:" prefix. pv_log_failure() is a convenience macro to log
      at level PV_LOG_LEVEL_FAILURE. Conceptually this is a fatal error, but
      it's a fatal error prompted by something external to pressure-vessel,
      for which we want pressure-vessel to clean up "nicely" and exit
      gracefully, even though it's going to fail - so we can't use g_error()
      for this.
      
      In the parts of main() that involve parsing command-line arguments,
      add usage_error() as syntactic sugar for pv_log_failure(). I might
      eventually turn these into G_OPTION_ERROR_FAILED as we factor out
      more of main() into helper functions, but for now they're handled
      separately.
      
      For less-severe log levels, use single-letter prefixes similar to apt's.
      
      Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
      dbf21961
  17. Feb 16, 2021
  18. Jan 05, 2021
  19. Dec 10, 2020
  20. Oct 22, 2020
    • Simon McVittie's avatar
      pressure-vessel: Disable GIO modules differently · 92b1c2b6
      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: default avatarSimon McVittie <smcv@collabora.com>
      92b1c2b6
  21. Oct 06, 2020
Loading