lanoxx / tilda

A Gtk based drop down terminal for Linux and Unix
GNU General Public License v2.0
1.26k stars 162 forks source link

Assertion error in libvte with a custom command #435

Closed micoq closed 3 years ago

micoq commented 3 years ago

When a new terminal is spawned with any custom command, vte_terminal_spawn_async() cannot recognize the environment variables pointed by envv: https://github.com/lanoxx/tilda/blob/master/src/tilda_terminal.c#L468

getenv("PATH") returns the value of PATH but vte_terminal_spawn_async() expects an array with NAME=VALUE format and crashes: VTE-CRITICAL assertion 'envv == nullptr || _vte_pty_check_envv(envv)' failed in vte_pty_spawn_with_fds_async()

OS: Debian bullseye/sid libvte: libvte-2.91.so.0.6200.0 tilda version: 1.5.2-1