Skip to content

Commit 78d0661

Browse files
authored
Merge pull request #73 from accumulator/pulse-icon
Add PulseAudio application icon hint
2 parents 7b95bbf + 686105b commit 78d0661

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Receivers/pulseaudio-ivshmem/scream-ivshmem-pulse.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ int main(int argc, char*argv[]) {
8282
// higher load conditions. This may fail when run as non-root.
8383
setpriority(PRIO_PROCESS, 0, -11);
8484

85+
// set application icon
86+
setenv("PULSE_PROP_application.icon_name", "audio-card", 0);
87+
8588
// map to stereo, it's the default number of channels
8689
pa_channel_map_init_stereo(&channel_map);
8790

Receivers/pulseaudio/scream-pulse.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ int main(int argc, char*argv[]) {
128128
// higher load conditions. This may fail when run as non-root.
129129
setpriority(PRIO_PROCESS, 0, -11);
130130

131+
// set application icon
132+
setenv("PULSE_PROP_application.icon_name", "audio-card", 0);
133+
131134
// map to stereo, it's the default number of channels
132135
pa_channel_map_init_stereo(&channel_map);
133136

0 commit comments

Comments
 (0)