From daa08658856642a6a6cb0e5ea47e8d824193f539 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 9 Sep 2021 17:31:56 -0400 Subject: [PATCH] refactor: moving OPENURI constant back from status-lib to app --- src/constants.nim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/constants.nim b/src/constants.nim index 67be09da1a..d53b303b59 100644 --- a/src/constants.nim +++ b/src/constants.nim @@ -33,7 +33,12 @@ type StatusDesktopConfig = object defaultValue: defaultDataDir() desc: "Status Desktop data directory" abbr: "d" .}: string - + uri* {. + defaultValue: "" + desc: "status-im:// URI to open a chat or other" + name: "uri" .}: string + + # On macOS the first time when a user gets the "App downloaded from the # internet" warning, and clicks the Open button, the OS passes a unique process # serial number (PSN) as -psn_... command-line argument, which we remove before @@ -48,6 +53,7 @@ let desktopConfig = StatusDesktopConfig.load(cliParams) let baseDir = absolutePath(expandTilde(desktopConfig.dataDir)) + OPENURI* = desktopConfig.uri DATADIR* = baseDir & sep STATUSGODIR* = joinPath(baseDir, "data") & sep KEYSTOREDIR* = joinPath(baseDir, "data", "keystore") & sep