From 552cc467b48fe318c87a96d50a5aaa5fb0f1d31b Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Fri, 20 Sep 2024 08:54:14 +0200 Subject: [PATCH] Remove debug location for plugins --- src/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8f5a15d..8b4c6ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -80,12 +80,13 @@ bool handle_window_resize(const SDL_Event& event, bool quit) { int main(int argc, char* argv[]) { try { // gather plugins -#if DEBUG - std::string plugin_dir {sc::dirname(sc::tool_path(argv[0])) + "/plugins"}; -#else + + // TODO Introduce config file with settting for this path and install it + // when doing "make install". Only use the hard-coded default when no + // config can be found. std::string plugin_dir {"/usr/local/share/screensaver/plugins"}; -#endif sc::plugin::scan_plugins(plugin_dir, "saver"); + std::string saver_name; bool random_saver {false}; bool small_window {false};