mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
feat : take into account that it can be more than just 'mango'
This commit is contained in:
parent
11f6f8d63a
commit
e35f4939de
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue