From 4ba0725dd4db7d2b47c8dfbbd4f6ea9250f72d19 Mon Sep 17 00:00:00 2001 From: cylgom Date: Sat, 21 Sep 2019 18:00:16 +0200 Subject: [PATCH] fix animation bug --- src/utils.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/utils.c b/src/utils.c index 1c28c82f..fd26dae4 100644 --- a/src/utils.c +++ b/src/utils.c @@ -110,8 +110,26 @@ void desktop_crawl( void desktop_load(struct desktop* target) { + // we don't care about desktop environments presence + // because the fallback shell is always available + // so we just dismiss any "throw" for now + int err = 0; + desktop_crawl(target, config.waylandsessions, DS_WAYLAND); + + if (dgn_catch()) + { + ++err; + dgn_reset(); + } + desktop_crawl(target, config.xsessions, DS_XORG); + + if (dgn_catch()) + { + ++err; + dgn_reset(); + } } static char* hostname_backup = NULL;