mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-27 06:46:44 -04:00
*.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. Change StartupWMClass to footclient from foot to track app-id change.
This commit is contained in:
parent
1ced3ef6dd
commit
d76aa539aa
2 changed files with 5 additions and 1 deletions
2
foot.ini
2
foot.ini
|
|
@ -4,7 +4,7 @@
|
||||||
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
|
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
|
||||||
# login-shell=no
|
# login-shell=no
|
||||||
|
|
||||||
# app-id=foot
|
# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode
|
||||||
# title=foot
|
# title=foot
|
||||||
# locked-title=no
|
# locked-title=no
|
||||||
|
|
||||||
|
|
|
||||||
4
main.c
4
main.c
|
|
@ -521,6 +521,9 @@ main(int argc, char *const *argv)
|
||||||
if (conf_app_id != NULL) {
|
if (conf_app_id != NULL) {
|
||||||
free(conf.app_id);
|
free(conf.app_id);
|
||||||
conf.app_id = xstrdup(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)
|
if (login_shell)
|
||||||
conf.login_shell = true;
|
conf.login_shell = true;
|
||||||
|
|
@ -672,6 +675,7 @@ main(int argc, char *const *argv)
|
||||||
if (as_server)
|
if (as_server)
|
||||||
LOG_INFO("running as server; launch terminals by running footclient");
|
LOG_INFO("running as server; launch terminals by running footclient");
|
||||||
|
|
||||||
|
LOG_INFO("app-id %s", conf.app_id);
|
||||||
if (as_server && pid_file != NULL) {
|
if (as_server && pid_file != NULL) {
|
||||||
if (!print_pid(pid_file, &unlink_pid_file))
|
if (!print_pid(pid_file, &unlink_pid_file))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue