Skip to content

Commit

Permalink
[Daemon] Fix start_daemon() for Flatpak on AArch64
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTumultuousUnicornOfDarkness committed Jan 21, 2025
1 parent b49d39a commit 213e0e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/daemon_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,14 @@ const char *start_daemon(bool graphical)
app_path = match[1].str() + "/lib/" + PRGNAME_LOW + "/" + DAEMON_EXEC;
else if(std::regex_search(line, match, runtime_path_regex))
{
# if defined(__x86_64__)
std::string runtime_path = match[1].str() + "/lib/x86_64-linux-gnu";
ld_library_path = "LD_LIBRARY_PATH=" + runtime_path;
ld_linux_path = runtime_path + "/ld-linux-x86-64.so.2";
# elif defined(__aarch64__)
std::string runtime_path = match[1].str() + "/lib/aarch64-linux-gnu";
ld_linux_path = runtime_path + "/ld-linux-aarch64.so.1";
# endif
ld_library_path = "LD_LIBRARY_PATH=" + runtime_path;
}
}

Expand Down

0 comments on commit 213e0e9

Please sign in to comment.