mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 16:50:06 +02:00
41 lines
936 B
Plaintext
41 lines
936 B
Plaintext
From 0c55c92e4525beed17fb027dee699a91a99f17fe Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Wed, 12 Sep 2018 13:38:53 +1000
|
|
Subject: Fix settings path
|
|
|
|
|
|
diff --git a/compat/unix/paths.c b/compat/unix/paths.c
|
|
index a3c89a1..84f0ccc 100644
|
|
--- a/compat/unix/paths.c
|
|
+++ b/compat/unix/paths.c
|
|
@@ -48,9 +48,13 @@ compat_get_temp_path( void )
|
|
const char*
|
|
compat_get_config_path( void )
|
|
{
|
|
+#ifndef __HAIKU__
|
|
const char *dir;
|
|
dir = getenv( "HOME" ); if( dir ) return dir;
|
|
return ".";
|
|
+#else
|
|
+ return "/boot/home/config/settings";
|
|
+#endif
|
|
}
|
|
|
|
int
|
|
diff --git a/settings.c b/settings.c
|
|
index 8b0dee7..c762274 100644
|
|
--- a/settings.c
|
|
+++ b/settings.c
|
|
@@ -58,7 +58,7 @@
|
|
#include "utils.h"
|
|
|
|
/* The name of our configuration file */
|
|
-#ifdef WIN32
|
|
+#if defined(WIN32) || defined(__HAIKU__)
|
|
#define CONFIG_FILE_NAME "fuse.cfg"
|
|
#else /* #ifdef WIN32 */
|
|
#define CONFIG_FILE_NAME ".fuserc"
|
|
--
|
|
2.19.0
|
|
|