diff --git a/README.md b/README.md index 44a0055..f8e48f5 100644 --- a/README.md +++ b/README.md @@ -91,10 +91,22 @@ the result of fundamental issues with Discord's thread implementation. ```Shell $ sudo apt install g++ cmake libgtkmm-3.0-dev libcurl4-gnutls-dev libsqlite3-dev libssl-dev nlohmann-json3-dev libhandy-1-dev libsecret-1-dev libopus-dev libsodium-dev libspdlog-dev ``` - * On Arch Linux + * On Arch Linux: ```Shell $ sudo pacman -S gcc cmake gtkmm3 libcurl-gnutls lib32-sqlite lib32-openssl nlohmann-json libhandy opus libsodium spdlog ``` + * On Void Linux: + ```Shell + $ # Install core dependencies + $ sudo xbps-install cmake make meson pkg-config gcc libcurl libcurl-devel libsecret libsecret-devel gtkmm gtkmm-devel sqlite sqlite-devel openssl openssl-devel libhandy1 libhandy1-devel opus opus-devel libsodium libsodium-devel spdlog libspdlog + $ # Clone and install nlohmann json: + $ git clone https://github.com/nlohmann/json && cd json + $ mkdir build + $ meson build + $ cd build + $ sudo meson install + $ cd ../.. + ``` * On Fedora Linux: ```Shell $ sudo dnf install g++ cmake gtkmm3.0-devel libcurl-devel sqlite-devel openssl-devel json-devel libsecret-devel libhandy-devel opus-devel libsodium-devel spdlog-devel @@ -134,7 +146,7 @@ Latest release version: https://github.com/uowuo/abaddon/releases/latest The two folders within the `res` folder (`res/res` and `res/css`) are necessary. Windows also uses the `fonts` folder. You can put them directly next to the executable. On Linux, `css` and `res` can also be loaded from -`~/.local/share/abaddon` or `/usr/share/abaddon` +`~/.local/share/abaddon` or `/usr/local/share/abaddon` `abaddon.ini` will also be automatically used if located at `~/.config/abaddon/abaddon.ini` and there is no `abaddon.ini` in the working directory diff --git a/src/platform.cpp b/src/platform.cpp index 726655b..4974211 100644 --- a/src/platform.cpp +++ b/src/platform.cpp @@ -93,7 +93,7 @@ std::string Platform::FindStateCacheFolder() { return "."; } -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) std::string Platform::FindResourceFolder() { static std::string found_path; static bool found = false;