From 16430c4c66df85c040f10b83b8d85f1465eb5f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Thu, 19 Jun 2025 08:27:59 +0200 Subject: [PATCH] clapper-app: Allow usage of all reactable enhancers Enable and use all found enhancer plugins on the system --- src/bin/clapper-app/main.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/bin/clapper-app/main.c b/src/bin/clapper-app/main.c index 865603a9..5fc36027 100644 --- a/src/bin/clapper-app/main.c +++ b/src/bin/clapper-app/main.c @@ -31,8 +31,10 @@ gint main (gint argc, gchar **argv) { - const gchar *clapper_ldir; GApplication *application; + ClapperEnhancerProxyList *proxies; + const gchar *clapper_ldir; + guint i, n_proxies; gint status; #ifdef G_OS_WIN32 @@ -64,6 +66,15 @@ main (gint argc, gchar **argv) resolution = clapper_app_utils_win_hi_res_clock_start (); #endif + proxies = clapper_get_global_enhancer_proxies (); + n_proxies = clapper_enhancer_proxy_list_get_n_proxies (proxies); + + /* Allow usage of all enhancers */ + for (i = 0; i < n_proxies; ++i) { + ClapperEnhancerProxy *proxy = clapper_enhancer_proxy_list_peek_proxy (proxies, i); + clapper_enhancer_proxy_set_target_creation_allowed (proxy, TRUE); + } + application = clapper_app_application_new (); status = g_application_run (application, argc, argv);