From b56b003fc13a4e12f97c6cfd5dd650e928d6e016 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 12 Jul 2020 00:00:26 +0200 Subject: Teach minecctl to split things into data and cfg dir, also read config variables from the server.properties file --- minecctl/misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'minecctl/misc.h') diff --git a/minecctl/misc.h b/minecctl/misc.h index d1c6816..02c01ea 100644 --- a/minecctl/misc.h +++ b/minecctl/misc.h @@ -6,9 +6,9 @@ int open_subdir(int dfd, const char *subdir, bool nofail); int open_xdg_dir(const char *envname, const char *altpath, bool nofail); -static inline int open_xdg_shared_dir() +static inline int open_xdg_data_dir(bool nofail) { - return open_xdg_dir("XDG_DATA_HOME", ".local/share", false); + return open_xdg_dir("XDG_DATA_HOME", ".local/share", nofail); } static inline int open_xdg_cfg_dir(bool nofail) -- cgit v1.2.3