aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configreader.vala
diff options
context:
space:
mode:
authorJuhani Krekelä2021-10-23 00:33:17 +0300
committerWolfgang Müller2021-11-27 14:05:19 +0100
commit71388f94c694a36b0ac360b34f09d7c16a51f803 (patch)
treec3522f312133b1b6bff844982064ab464d415b34 /configreader.vala
parent743db7dd1c0ced6d4aeb4d4719e4985e8f83890b (diff)
downloadweltschmerz-71388f94c694a36b0ac360b34f09d7c16a51f803.tar.gz
Add procfs fallback for figuring out the cwd
Opening a terminal or file manager window requires weltschmerz to know the current working directory. At the moment weltschmerz relies on the application being run in the terminal to generate OSC 7 codes that specify the path. However, OSC 7 is not yet widely supported by default, and the VTE terminal emulation layer, which manages the OSC 7 path state for weltschmerz, will overwrite local paths with ones that point to a remote computer if an OSC 7 enabled application is run under ssh. This change adds a fallback that uses the symlink to current working directory located at /proc/<child pid>/cwd. On Linux this method should always work and was how these features were implemented before adoption of OSC 7. The procfs method is used as a fallback instead of the primary method since it can only see the working directory changes of the direct child process.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions