Skip to content
Snippets Groups Projects
  1. Dec 11, 2023
  2. Jul 31, 2023
    • Arnaud Ferraris's avatar
      d/control: make pipewire-pulse an alternate dependency · 22b9ce40
      Arnaud Ferraris authored and Arnaud Ferraris's avatar Arnaud Ferraris committed
      Wys works fine with both `pulseaudio` and `pipewire-pulse`. Let's
      acknowledge this by listing both as valid alternatives.
      22b9ce40
    • Arnaud Ferraris's avatar
      wys.user.service: depend on pipewire-pulse OR pulseaudio · cb84db91
      Arnaud Ferraris authored and Arnaud Ferraris's avatar Arnaud Ferraris committed
      Currently the systemd service *requires* `pulseaudio.service`. However,
      `pipewire-pulse` can be used instead, and either one of those will
      fulfill the actual requirement (having a daemon speaking the PulseAudio
      protocol).
      
      However, there is no way to specify alternate requirements in systemd
      units, so we need to:
      * list both services as dependencies to `wys`
      * use `Wants=` instead of `Requires=` as those services conflict with
        each other, meaning only one of them can run at any given moment
      
      Let's acknowledge this by lowering the dependency requirement
      (otherwise `wys` won't start due to a missing dependency) and having
      both services listed there.
      cb84db91
  3. Oct 21, 2022
    • Arnaud Ferraris's avatar
      main: fix signal handling · 1fd92c25
      Arnaud Ferraris authored and Arnaud Ferraris's avatar Arnaud Ferraris committed
      Currently, `wys` ignores SIGINT, which makes it impossible to kill using
      ^C. This was initially done because the service wouldn't be
      automatically restarted by systemd when terminated that way.
      
      However, SIGINT is normally only sent in response to a user action
      (typically, hitting CTRL+C), one would then expect the program to
      terminate normally in such cases. Setting `terminate()` as a handler for
      SIGINT as well restores a more "natural" behavior.
      
      We take this opportunity to use glib's `g_unix_signal_add()` function
      for setting signal handlers as it is more appropriate for a glib-based
      software. This required moving signal setup after the main loop creation
      though, as this function needs an existing `GMainContext`.
      1fd92c25
  4. Feb 25, 2021
  5. Feb 24, 2021
  6. Feb 14, 2021
  7. Feb 12, 2021
  8. Nov 15, 2020
  9. Nov 04, 2020
  10. Oct 19, 2020
  11. Oct 01, 2020
  12. Sep 13, 2020
    • Sebastian Krzyszkowiak's avatar
      Get rid of codec handling · a432e15c
      Sebastian Krzyszkowiak authored
      It's unnecessary and in fact needlessly complicates things. PulseAudio
      will route the streams to default sink/source on its own, and always
      specifying the codec end breaks various use-cases like Bluetooth
      handsets or external USB sound cards. Not setting [sink|source]_dont_move
      on the non-modem side also allows for rerouting audio mid-call.
      a432e15c
  13. Jul 21, 2020
  14. Jan 27, 2020
  15. Jan 24, 2020
  16. Jan 23, 2020
  17. Dec 08, 2019
  18. Dec 06, 2019
  19. Nov 29, 2019
  20. Nov 26, 2019