*.desktop: Update to allow footclient and foot to track running instances as separate icons in gnome.

Make windows spawned from Server mode have the app-id of footclient.
Make sure that foot.ini app-id settings are respected.
Change StartupWMClass to footclient from foot to track app-id change.
This commit is contained in:
jdevdevdev 2023-05-14 21:19:49 +10:00
parent d76aa539aa
commit 250b499c1d
No known key found for this signature in database
GPG key ID: CFA7C1B81166E2CC
3 changed files with 7 additions and 8 deletions

5
main.c
View file

@ -487,7 +487,7 @@ main(int argc, char *const *argv)
struct config conf = {NULL};
bool conf_successful = config_load(
&conf, conf_path, &user_notifications, &overrides, check_config);
&conf, conf_path, &user_notifications, &overrides, check_config, as_server);
tll_free(overrides);
if (!conf_successful) {
@ -521,9 +521,6 @@ main(int argc, char *const *argv)
if (conf_app_id != NULL) {
free(conf.app_id);
conf.app_id = xstrdup(conf_app_id);
} else if (as_server) {
free(conf.app_id);
conf.app_id = xstrdup("footclient");
}
if (login_shell)
conf.login_shell = true;