1. 22 May, 2022 1 commit
  2. 30 Apr, 2022 1 commit
  3. 29 Apr, 2022 3 commits
  4. 28 Apr, 2022 4 commits
  5. 02 Apr, 2022 5 commits
  6. 01 Apr, 2022 1 commit
  7. 29 Mar, 2022 2 commits
  8. 28 Mar, 2022 1 commit
    • Rastersoft's avatar
      Add support for async calls in DBusProxyWrapper · 7087f050
      Rastersoft authored
      Currently, DBusProxyWrapper dynamically creates two methods for
      each method available in the DBus interface: one with the suffix
      Sync (which blocks the calling thread until the call returns),
      and another with the suffix Remote (which accepts a callback,
      called when the DBus calls returns).
      
      Since GJS has support for async/await, it is a good idea to use
      them for DBus. Unfortunately, that means creating some plumbing
      using Promises. It is not complex, but it is a repetitive task.
      
      This MR fixes this by adding a third method, suffixed with
      Async, that returns a Promise that calls the DBus method and
      returns the result with `resolve` (or `reject` if an error
      occurs). This allows to call a DBus method from an async
      function and wait for the result using `await`.
      7087f050
  9. 24 Mar, 2022 1 commit
  10. 23 Mar, 2022 2 commits
  11. 19 Mar, 2022 4 commits
  12. 10 Mar, 2022 1 commit
  13. 06 Mar, 2022 9 commits
  14. 05 Mar, 2022 3 commits
  15. 04 Mar, 2022 2 commits