diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-03 11:58:55 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-03 11:58:55 +0000 |
| commit | 347b90eaaea79863611f3fd405611e482ed3196d (patch) | |
| tree | 06732af5a350d8b4e8b71ba9b7ed5eef5b6115da /main.c | |
| parent | config: format all (well, most) error messages in the same way (diff) | |
| parent | foot/client: implement xdga client activation (diff) | |
Merge branch 'xdga-launch'
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -160,6 +160,10 @@ main(int argc, char *const *argv) static const int foot_exit_failure = -26; int ret = foot_exit_failure; + /* XDG startup notifications */ + const char *token = getenv("XDG_ACTIVATION_TOKEN"); + unsetenv("XDG_ACTIVATION_TOKEN"); + /* Startup notifications; we don't support it, but must ensure we * don't pass this on to programs launched by us */ unsetenv("DESKTOP_STARTUP_ID"); @@ -530,7 +534,8 @@ main(int argc, char *const *argv) goto out; if (!as_server && (term = term_init( - &conf, fdm, reaper, wayl, "foot", cwd, argc, argv, + &conf, fdm, reaper, wayl, "foot", cwd, token, + argc, argv, &term_shutdown_cb, &shutdown_ctx)) == NULL) { goto out; } |
