mirror of https://github.com/fairyglade/ly.git
fix animation bug
This commit is contained in:
parent
f2050c955d
commit
4ba0725dd4
18
src/utils.c
18
src/utils.c
|
|
@ -110,8 +110,26 @@ void desktop_crawl(
|
||||||
|
|
||||||
void desktop_load(struct desktop* target)
|
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);
|
desktop_crawl(target, config.waylandsessions, DS_WAYLAND);
|
||||||
|
|
||||||
|
if (dgn_catch())
|
||||||
|
{
|
||||||
|
++err;
|
||||||
|
dgn_reset();
|
||||||
|
}
|
||||||
|
|
||||||
desktop_crawl(target, config.xsessions, DS_XORG);
|
desktop_crawl(target, config.xsessions, DS_XORG);
|
||||||
|
|
||||||
|
if (dgn_catch())
|
||||||
|
{
|
||||||
|
++err;
|
||||||
|
dgn_reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static char* hostname_backup = NULL;
|
static char* hostname_backup = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue