Skip to content
Snippets Groups Projects
Commit 21264efb authored by Boris Grozev's avatar Boris Grozev
Browse files

Uses the ConfigurationService to find the directories to use.

parent 968db3d2
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
import org.jitsi.service.configuration.*;
import org.jitsi.service.fileaccess.*;
import org.jitsi.service.libjitsi.*;
import org.jitsi.util.*;
import com.sun.jna.*;
......@@ -517,16 +518,24 @@ private synchronized void initialize()
if (initialized)
return;
ConfigurationService cfg = LibJitsi.getConfigurationService();
profileDirLocation
= getSystemProperty(
= cfg != null
? cfg.getScHomeDirLocation()
: getSystemProperty(
ConfigurationService.PNAME_SC_HOME_DIR_LOCATION);
if (profileDirLocation == null)
{
throw new IllegalStateException(
ConfigurationService.PNAME_SC_HOME_DIR_LOCATION);
}
scHomeDirName
= getSystemProperty(ConfigurationService.PNAME_SC_HOME_DIR_NAME);
= cfg != null
? cfg.getScHomeDirName()
: getSystemProperty(
ConfigurationService.PNAME_SC_HOME_DIR_NAME);
if (scHomeDirName == null)
{
throw new IllegalStateException(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment