comparison mac/dw.m @ 2071:c2f13c5eefac

GTK: Add dw_app_id_set() and reconfigure based on the new code path. Mac: Fix a typo that causes incorrect behavior generating an app ID.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 15 May 2020 02:13:57 +0000
parents 370baf78abdc
children b7514ecd6305
comparison
equal deleted inserted replaced
2070:370baf78abdc 2071:c2f13c5eefac
12016 { 12016 {
12017 char *pathcopy = strdup(argv[0]); 12017 char *pathcopy = strdup(argv[0]);
12018 char *app = strstr(pathcopy, ".app/"); 12018 char *app = strstr(pathcopy, ".app/");
12019 char *binname = strrchr(pathcopy, '/'); 12019 char *binname = strrchr(pathcopy, '/');
12020 12020
12021 if(binname && (binname++) && _dw_app_id[0]) 12021 if(binname && (binname++) && !_dw_app_id[0])
12022 { 12022 {
12023 /* If we have a binary name, use that for the Application ID instead. */ 12023 /* If we have a binary name, use that for the Application ID instead. */
12024 snprintf(_dw_app_id, 100, "%s.%s", DW_APP_DOMAIN_DEFAULT, binname); 12024 snprintf(_dw_app_id, 100, "%s.%s", DW_APP_DOMAIN_DEFAULT, binname);
12025 } 12025 }
12026 if(app) 12026 if(app)