|
40 | 40 | #include "output/x11.h" |
41 | 41 | #endif /* BUILD_X11 */ |
42 | 42 |
|
| 43 | +#ifdef BUILD_PRESETS |
| 44 | +#include "themespresetmanager.h" |
| 45 | +#endif |
| 46 | + |
43 | 47 | #ifdef BUILD_CURL |
44 | 48 | #include "data/network/ccurl_thread.h" |
45 | 49 | #endif /* BUILD_CURL */ |
|
69 | 73 |
|
70 | 74 | #ifdef BUILD_OLD_CONFIG |
71 | 75 | #include "convertconf.h" |
72 | | -#include "themespresetmanager.h" |
| 76 | + |
73 | 77 | #endif /* BUILD_OLD_CONFIG */ |
74 | 78 | #endif /* BUILD_BUILTIN_CONFIG */ |
75 | 79 |
|
@@ -301,8 +305,8 @@ inline void reset_optind() { |
301 | 305 | optind = 0; |
302 | 306 | #endif |
303 | 307 | } |
304 | | -const char * THEME_PRESETS_REPO_CLONING_URL = "https://github.com/Cetttok/testRepoForConkyThemes"; // it is example need to create norm repo |
305 | | -const char * THEME_PRESETS_REPO_PATH = "/var/lib/conky/themes"; |
| 308 | +// const char * THEME_PRESETS_REPO_CLONING_URL = "https://github.com/Cetttok/testRepoForConkyThemes"; // it is example need to create norm repo |
| 309 | +// const char * THEME_PRESETS_REPO_PATH = "/var/lib/conky/themes"; |
306 | 310 | int main(int argc, char **argv) { |
307 | 311 | #ifdef BUILD_I18N |
308 | 312 | setlocale(LC_ALL, ""); |
@@ -337,9 +341,6 @@ int main(int argc, char **argv) { |
337 | 341 | NORM_ERR("Can't set the specified locale!\nCheck LANG, LC_CTYPE, LC_ALL."); |
338 | 342 | } |
339 | 343 | #endif /* BUILD_X11 */ |
340 | | - // SystemGitRepoSource* dataSource = new SystemGitRepoSource("newdatabase","https://github.com/Cetttok/testRepoForConkyThemes"); |
341 | | - // ThemesPresetManager presets(dataSource); |
342 | | - // std::cout << argc << argv << getopt_string << longopts << std::endl; |
343 | 344 | while (1) { |
344 | 345 | int c = getopt_long(argc, argv, getopt_string, longopts, nullptr); |
345 | 346 |
|
@@ -367,10 +368,6 @@ int main(int argc, char **argv) { |
367 | 368 | case 'h': |
368 | 369 | print_help(argv[0]); |
369 | 370 | return 0; |
370 | | - // case 'S': |
371 | | - // std::cout << "optarg " << optarg << std::endl; |
372 | | - // std::cout << presets.getThemePath(std::string(optarg)) << std::endl; |
373 | | - // break; |
374 | 371 | #ifdef BUILD_BUILTIN_CONFIG |
375 | 372 | case 'C': |
376 | 373 | std::cout << defconfig; |
@@ -399,24 +396,12 @@ int main(int argc, char **argv) { |
399 | 396 | return 0; |
400 | 397 | } |
401 | 398 | #endif /* Linux || FreeBSD || Haiku || NetBSD || OpenBSD */ |
402 | | - //////// |
403 | | - /// |
404 | | - /// |
405 | | - /// |
406 | | - /// |
407 | | - /// |
408 | | - /// |
409 | | - /// /// |
410 | | - /// /// |
411 | | - /// |
412 | | - /// |
413 | | - /// |
414 | | - /// |
415 | | - /// //// |
416 | 399 |
|
417 | 400 | try { |
418 | 401 | set_current_config(); |
419 | | - tryToReplaceAliasToPresetPath(THEME_PRESETS_REPO_PATH, THEME_PRESETS_REPO_CLONING_URL ); |
| 402 | +#ifdef BUILD_PRESETS |
| 403 | + tryToReplaceAliasToPresetPath(PRESETS_REPO_PATH , PRESETS_REPO_URL); |
| 404 | +#endif |
420 | 405 | state = std::make_unique<lua::state>(); |
421 | 406 |
|
422 | 407 | conky::export_symbols(*state); |
|
0 commit comments