diff options
Diffstat (limited to 'terminal.vala')
-rw-r--r-- | terminal.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/terminal.vala b/terminal.vala index fcb456c..6dfe61e 100644 --- a/terminal.vala +++ b/terminal.vala @@ -419,7 +419,11 @@ class Terminal : Gtk.Overlay { return osc7_path; } - return Posix.realpath("/proc/%i/cwd".printf(child_pid)); + string? path = Posix.realpath("/proc/%i/cwd".printf(child_pid)); + // If we couldn't get the cwd from /proc, try /compat/linux/proc + if (path == null) + path = Posix.realpath("/compat/linux/proc/%i/cwd".printf(child_pid)); + return path; } void spawn_process(string? cwd, string[] argv) { |