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};