Remove debug location for plugins

This commit is contained in:
Bob Polis 2024-09-20 08:54:14 +02:00
parent bc92d521fb
commit 552cc467b4

View File

@ -80,12 +80,13 @@ bool handle_window_resize(const SDL_Event& event, bool quit) {
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
try { try {
// gather plugins // gather plugins
#if DEBUG
std::string plugin_dir {sc::dirname(sc::tool_path(argv[0])) + "/plugins"}; // TODO Introduce config file with settting for this path and install it
#else // 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"}; std::string plugin_dir {"/usr/local/share/screensaver/plugins"};
#endif
sc::plugin<ScreensaverPlugin>::scan_plugins(plugin_dir, "saver"); sc::plugin<ScreensaverPlugin>::scan_plugins(plugin_dir, "saver");
std::string saver_name; std::string saver_name;
bool random_saver {false}; bool random_saver {false};
bool small_window {false}; bool small_window {false};