Add environment variable as escape hatch
This commit is contained in:
parent
50a95792a1
commit
1a8377b198
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
#include "content/public/browser/desktop_notification_delegate.h"
|
#include "content/public/browser/desktop_notification_delegate.h"
|
||||||
#include "content/public/common/platform_notification_data.h"
|
#include "content/public/common/platform_notification_data.h"
|
||||||
#include "common/application_info.h"
|
#include "common/application_info.h"
|
||||||
|
#include <stdlib.h>
|
||||||
#include "third_party/skia/include/core/SkBitmap.h"
|
#include "third_party/skia/include/core/SkBitmap.h"
|
||||||
|
|
||||||
using namespace base;
|
using namespace base;
|
||||||
|
@ -31,6 +32,11 @@ static bool UnityIsRunning() {
|
||||||
if (unity_has_result) {
|
if (unity_has_result) {
|
||||||
return unity_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
|
// Look for the presence of libunity as our hint that we're under Ubuntu
|
||||||
FilePath haystack;
|
FilePath haystack;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue