summaryrefslogtreecommitdiff
path: root/src/eggshell.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2026-04-09 17:03:54 -0400
committerVictor Kareh <[email protected]>2026-04-09 17:03:54 -0400
commit932c5c0ec90fddbffb7996996df585d36b53bd8b (patch)
tree53489be46b6f67ba0c3ac46862a56bba279115ab /src/eggshell.c
parent82c29555af291daf6504bdd57be8502be38282d3 (diff)
downloadmate-terminal-use-osc7-cwd.tar.bz2
mate-terminal-use-osc7-cwd.tar.xz
terminal-screen: prefer OSC 7 for current working directoryuse-osc7-cwd
Use the current directory URI (set by the shell via OSC 7 escape sequence) to determine the working directory for new tabs, instead of reading /proc. This works inside tmux/screen/sudo, preserves symlink components, and is consistent with other VTE-based terminal emulators. The /proc-based detection is kept as a fallback for shells that don't emit OSC 7 (e.g. vte.sh is not sourced). The initial working directory is used as a final fallback, and the separate _with_fallback variant is folded into the main function so all callers benefit from the complete fallback chain. Adapted from https://gitlab.gnome.org/GNOME/gnome-terminal/-/commit/cf3cad87 Fixes #195
Diffstat (limited to 'src/eggshell.c')
0 files changed, 0 insertions, 0 deletions