Skip to content

Commit

Permalink
Merge pull request #73 from accumulator/pulse-icon
Browse files Browse the repository at this point in the history
Add PulseAudio application icon hint
  • Loading branch information
duncanthrax committed Mar 5, 2020
2 parents 7b95bbf + 686105b commit 78d0661
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Receivers/pulseaudio-ivshmem/scream-ivshmem-pulse.c
Expand Up @@ -82,6 +82,9 @@ int main(int argc, char*argv[]) {
// higher load conditions. This may fail when run as non-root.
setpriority(PRIO_PROCESS, 0, -11);

// set application icon
setenv("PULSE_PROP_application.icon_name", "audio-card", 0);

// map to stereo, it's the default number of channels
pa_channel_map_init_stereo(&channel_map);

Expand Down
3 changes: 3 additions & 0 deletions Receivers/pulseaudio/scream-pulse.c
Expand Up @@ -128,6 +128,9 @@ int main(int argc, char*argv[]) {
// higher load conditions. This may fail when run as non-root.
setpriority(PRIO_PROCESS, 0, -11);

// set application icon
setenv("PULSE_PROP_application.icon_name", "audio-card", 0);

// map to stereo, it's the default number of channels
pa_channel_map_init_stereo(&channel_map);

Expand Down

0 comments on commit 78d0661

Please sign in to comment.