fix : ensure the current dekstop is mango before executing ipc dispatch

This commit is contained in:
Wateir 2026-04-13 16:27:12 +02:00
parent 7cfeeb3687
commit 11f6f8d63a

View file

@ -546,6 +546,15 @@ static void usage(void) {
} }
int32_t main(int32_t argc, char *argv[]) { 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")) {
fprintf(stderr, "wrong dekstop, wanted 'mango' have '%s'\n",
env_XDG_DEKSTOP);
exit(EXIT_FAILURE);
}
ARGBEGIN { ARGBEGIN {
case 'q': case 'q':
qflag = 1; qflag = 1;