aboutsummaryrefslogtreecommitdiff
path: root/src/config.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.nim')
-rw-r--r--src/config.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.nim b/src/config.nim
index 25ab011..8b0e0f5 100644
--- a/src/config.nim
+++ b/src/config.nim
@@ -111,10 +111,10 @@ proc obtainConfig*(config: PacmanConfig): Config =
let db = config.db
let color = config.colorMode.get
- let (userId, userName) = getUser()
+ let user = initialUser.get(currentUser)
let tmpRoot = options.opt("TmpDir").get("/tmp/pakku-${USER}")
- .replace("${UID}", $userId)
- .replace("${USER}", userName)
+ .replace("${UID}", $user.uid)
+ .replace("${USER}", user.name)
let aurComments = options.hasKey("AurComments")
let checkIgnored = options.hasKey("CheckIgnored")
let printAurNotFound = options.hasKey("PrintAurNotFound")