]> khamidou — GitHub mirrors - electron.git/commitdiff
app.makeSingleInstance is not available on OS X
authorCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 07:02:32 +0000 (15:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 22 Oct 2015 07:02:32 +0000 (15:02 +0800)
atom/browser/api/atom_api_app.cc
docs/api/app.md

index 2dfc3e056da59a36ed1147935d392e1cb854044f..5ce918be78ad0db9ded8c5018b983ceb19412720 100644 (file)
@@ -278,6 +278,10 @@ v8::Local<v8::Value> App::DefaultSession(v8::Isolate* isolate) {
 }
 
 bool App::MakeSingleInstance(ProcessSingleton::NotificationCallback callback) {
+#if defined(OS_MACOSX)
+  LOG(ERROR) << "MakeSingleInstance is not implemnted on OS X";
+  return false;
+#endif
   if (process_singleton_.get())
     return false;
 
index 95aa80b6dc8345b57b71db9bd1253da121fd4496..bd017456a78ca1e70b3dc023f3e4c496ca7e4f51 100644 (file)
@@ -290,7 +290,7 @@ URLs that fall under "Local Intranet" sites (i.e. are in the same domain as you)
 However, this detection often fails when corporate networks are badly configured,
 so this lets you co-opt this behavior and enable it for all URLs.
 
-### `app.makeSingleInstance(callback)`
+### `app.makeSingleInstance(callback)` _Windows_ _Linux_
 
 * `callback` Function