Remove debug location for plugins
This commit is contained in:
parent
bc92d521fb
commit
552cc467b4
@ -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};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user