Add environment variable as escape hatch

This commit is contained in:
Paul Betts 2015-09-30 09:14:31 -07:00
parent 50a95792a1
commit 1a8377b198

View file

@ -13,6 +13,7 @@
#include "content/public/browser/desktop_notification_delegate.h"
#include "content/public/common/platform_notification_data.h"
#include "common/application_info.h"
#include <stdlib.h>
#include "third_party/skia/include/core/SkBitmap.h"
using namespace base;
@ -31,6 +32,11 @@ static bool UnityIsRunning() {
if (unity_has_result) {
return unity_result;
}
if (getenv("ELECTRON_USE_UBUNTU_NOTIFIER")) {
unity_result = true;
goto out;
}
// Look for the presence of libunity as our hint that we're under Ubuntu
FilePath haystack;