As server, store files in working directory instead of home folder.
This commit is contained in:
parent
c148ee928c
commit
07a2fde2af
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.nutomic.ensichat.server
|
||||
|
||||
import java.io.File
|
||||
import java.nio.file.Paths
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
import com.nutomic.ensichat.core.body.Text
|
||||
|
@ -13,7 +14,7 @@ object Main extends App with CallbackInterface {
|
|||
|
||||
private val Tag = "Main"
|
||||
|
||||
private val ConfigFolder = new File(System.getProperty("user.home"), ".config/ensichat")
|
||||
private val ConfigFolder = Paths.get("").toFile.getAbsoluteFile
|
||||
private val ConfigFile = new File(ConfigFolder, "config.properties")
|
||||
private val KeyFolder = new File(ConfigFolder, "keys")
|
||||
|
||||
|
|
Reference in a new issue