From c37740273f95e8032c4d59afe9978b76e9c8fb0a Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 7 Oct 2016 13:44:31 -0700 Subject: [PATCH] Add linux guard for SetGlobalAppName call --- atom/browser/api/atom_api_app.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index 45857c154e76..8ea068b34dad 100644 --- a/atom/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -491,9 +491,11 @@ void App::OnWillFinishLaunching() { } void App::OnFinishLaunching(const base::DictionaryValue& launch_info) { +#if defined(OS_LINUX) // Set the application name for audio streams shown in external // applications. Only affects pulseaudio currently. media::AudioManager::SetGlobalAppName(Browser::Get()->GetName()); +#endif Emit("ready", launch_info); }