diff --git a/mmsg/mmsg.c b/mmsg/mmsg.c index f400701c..a9a374ce 100644 --- a/mmsg/mmsg.c +++ b/mmsg/mmsg.c @@ -549,7 +549,11 @@ int32_t main(int32_t argc, char *argv[]) { const char *env_XDG_DEKSTOP = getenv("XDG_CURRENT_DESKTOP"); - if (!env_XDG_DEKSTOP || strcmp(env_XDG_DEKSTOP, "mango")) { + /* + * https://specifications.freedesktop.org/mime-apps/latest/file.html + * can be more than just 'mango' but 'mango,mangowm,wlroots' + */ + if (!env_XDG_DEKSTOP || !strstr(env_XDG_DEKSTOP, "mango")) { fprintf(stderr, "wrong dekstop, wanted 'mango' have '%s'\n", env_XDG_DEKSTOP); exit(EXIT_FAILURE);