If XDG_CURRENT_DESKTOP is not set, an exception will be thrown and __remove_bad_windows() will return an empty list.
XDG_CURRENT_DESKTOP is only set in large integrated desktop environments and not in small Window Managers.
Therefore, the correct list must be returned even if the environment variable is not set.
If
XDG_CURRENT_DESKTOP
is not set, an exception will be thrown and__remove_bad_windows()
will return an empty list.XDG_CURRENT_DESKTOP
is only set in large integrated desktop environments and not in small Window Managers. Therefore, the correct list must be returned even if the environment variable is not set.