Added --uri command line argument
This commit is contained in:
parent
0b24d7a341
commit
5c6bfec916
|
@ -1,5 +1,6 @@
|
||||||
import libstatus/accounts/constants
|
import libstatus/accounts/constants
|
||||||
|
|
||||||
|
export OPENURI
|
||||||
export DATADIR
|
export DATADIR
|
||||||
export STATUSGODIR
|
export STATUSGODIR
|
||||||
export KEYSTOREDIR
|
export KEYSTOREDIR
|
||||||
|
|
|
@ -209,6 +209,10 @@ 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
|
||||||
|
@ -224,6 +228,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
|
||||||
|
|
Loading…
Reference in New Issue