Don't prepend proc with TARGET_DIR_ROOT

Should make future packaging for termux simpler
This commit is contained in:
Linus Dierheimer
2022-05-23 20:01:18 +02:00
parent 60af0b9e39
commit ea44231c78
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -289,13 +289,13 @@ static void getWMProtocolNameFromEnv(FFDisplayServerResult* result)
static void getFromProcDir(const FFinstance* instance, FFDisplayServerResult* result)
{
DIR* proc = opendir(FASTFETCH_TARGET_DIR_ROOT"/proc");
DIR* proc = opendir("/proc");
if(proc == NULL)
return;
FFstrbuf procPath;
ffStrbufInitA(&procPath, 64);
ffStrbufAppendS(&procPath, FASTFETCH_TARGET_DIR_ROOT"/proc/");
ffStrbufAppendS(&procPath, "/proc/");
uint32_t procPathLength = procPath.length;