From 8ac461dbb8804f6e8b3638d8430b17fc7cf28075 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 3 Feb 2021 14:48:42 +0200 Subject: XDG: Check XDG_CONFIG_HOME and the user's download directory Also added a build option to disable changing the user download directory within Lagrange, since that's set via XDG config. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 100794d8..ce07c2de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,7 @@ option (ENABLE_KERNING "Enable kerning in font renderer (slower)" ON) option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) option (ENABLE_WINDOWPOS_FIX "Set position after showing window (workaround for SDL bug)" OFF) option (ENABLE_IDLE_SLEEP "While idle, sleep in the main thread instead of waiting for events" ON) +option (ENABLE_DOWNLOAD_EDIT "Allow changing the Downloads directory" ON) include (BuildType.cmake) include (res/Embed.cmake) @@ -226,6 +227,9 @@ endif () if (ENABLE_IDLE_SLEEP) target_compile_definitions (app PUBLIC LAGRANGE_IDLE_SLEEP=1) endif () +if (ENABLE_DOWNLOAD_EDIT) + target_compile_definitions (app PUBLIC LAGRANGE_DOWNLOAD_EDIT=1) +endif () target_link_libraries (app PUBLIC the_Foundation::the_Foundation) target_link_libraries (app PUBLIC ${SDL2_LDFLAGS}) if (APPLE) -- cgit v1.2.3