summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index bb2eb2c..7ae3532 100644
--- a/src/main.c
+++ b/src/main.c
@@ -47,9 +47,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "device.h"
#include "client.h"
+extern const char* userpref_get_config_dir();
+
static const char *socket_path = "/var/run/usbmuxd";
static const char *lockfile = "/var/run/usbmuxd.pid";
-static const char *userprefdir = "/var/lib/lockdown";
int should_exit;
int should_discover;
@@ -529,6 +530,8 @@ int main(int argc, char *argv[])
if(listenfd < 0)
goto terminate;
+ const char* userprefdir = userpref_get_config_dir();
+
struct stat fst;
int userprefdir_created = 0;
if (stat(userprefdir, &fst) < 0) {