As server, store files in working directory instead of home folder.

This commit is contained in:
Felix Ableitner 2016-02-22 00:28:07 +01:00
parent c148ee928c
commit 07a2fde2af

View file

@ -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")