Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: warn users if app is running under arm64 translation

Abdullah Atta4fa1ea438079
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
index f4d44000a..c8b85fcb9 100644
--- a/apps/desktop/src/main.ts
+++ b/apps/desktop/src/main.ts
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import "./overrides";
-import { app, BrowserWindow, nativeTheme, shell } from "electron";
+import { app, BrowserWindow, nativeTheme, shell, dialog } from "electron";
import { isDevelopment } from "./utils";
import { registerProtocol, PROTOCOL_URL } from "./utils/protocol";
import { configureAutoUpdater } from "./utils/autoupdater";
@@ -52,6 +52,17 @@ locale.then(({ default: locale }) => {
});
setI18nGlobal(i18n);
+if (app.runningUnderARM64Translation) {
+ console.log("App is running under ARM64 translation");
+ dialog.showMessageBoxSync({
+ message:
+ "Notesnook detected that it is running under ARM64 translation. For the best performance, please download the ARM64 build of Notesnook from our website.",
+ type: "warning",
+ buttons: ["Okay"],
+ title: "Degraded Performance Warning"
+ });
+}
+
// only run a single instance
if (!MAC_APP_STORE && !app.requestSingleInstanceLock()) {
console.log("Another instance is already running!");