refactor: moving OPENURI constant back from status-lib to app

This commit is contained in:
Richard Ramos 2021-09-09 17:31:56 -04:00 committed by RichΛrd
parent 58c50a9cf9
commit daa0865885
1 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,11 @@ type StatusDesktopConfig = object
defaultValue: defaultDataDir() defaultValue: defaultDataDir()
desc: "Status Desktop data directory" desc: "Status Desktop data directory"
abbr: "d" .}: string 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 # 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 # internet" warning, and clicks the Open button, the OS passes a unique process
@ -48,6 +53,7 @@ let desktopConfig = StatusDesktopConfig.load(cliParams)
let let
baseDir = absolutePath(expandTilde(desktopConfig.dataDir)) baseDir = absolutePath(expandTilde(desktopConfig.dataDir))
OPENURI* = desktopConfig.uri
DATADIR* = baseDir & sep DATADIR* = baseDir & sep
STATUSGODIR* = joinPath(baseDir, "data") & sep STATUSGODIR* = joinPath(baseDir, "data") & sep
KEYSTOREDIR* = joinPath(baseDir, "data", "keystore") & sep KEYSTOREDIR* = joinPath(baseDir, "data", "keystore") & sep