From ff030ba63f8d109618cbb69d759a5ce4c3cd802f Mon Sep 17 00:00:00 2001 From: p0358 Date: Thu, 19 Feb 2026 19:39:56 +0100 Subject: [PATCH] don't show microphone indicator on KDE --- src/sound.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/sound.cpp b/src/sound.cpp index 76a7af3..eedfbf9 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -340,11 +340,18 @@ static bool pa_sound_device_handle_reconnect(pa_handle *p, char *device_name, si return false; } - if(!(p->stream = pa_stream_new(p->context, p->stream_name, &p->ss, NULL))) { + pa_proplist *proplist = pa_proplist_new(); + // This prevents microphone recording indicator from being shown on KDE + pa_proplist_sets(proplist, "node.virtual", "true"); + + if(!(p->stream = pa_stream_new_with_proplist(p->context, p->stream_name, &p->ss, NULL, proplist))) { //pa_context_errno(p->context); + pa_proplist_free(proplist); return false; } + pa_proplist_free(proplist); + const int r = pa_stream_connect_record(p->stream, device_name, &p->attr, (pa_stream_flags_t)(PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_ADJUST_LATENCY|PA_STREAM_AUTO_TIMING_UPDATE|PA_STREAM_DONT_MOVE));