Repository navigation
fix(open): start launched programs in the folder of the opened file - #1990
Merged
Merged
Conversation
Strata moves to / at startup so it never keeps a mount busy, and GIO spawns programs with the parent's working directory unless the desktop entry sets Path. Every program opened from Strata therefore started in /. Enter the folder of the first file around the synchronous GIO launch and return right after, so the program starts where a shell would start it while Strata still holds no folder.
Strata's working folder stays `/`, but Open and Open With now start the program in the first file's folder, so the filesystem-compatibility notes must no longer say launched programs start in `/`. Tighten the helper's doc comment to the rationale alone.
Contributor
|
Review pass (merged What I changed (bb3aa90)
Review notes, no change needed
Verification
|
5 tasks
wmfeht
pushed a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 2, 2026
…rd formats node Work in progress for the sync of lgse/strata#1990..#2040; the node updates follow in the next commit. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RQ23ACSBaVdBtSbREZjCtd
wmfeht
added a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 7, 2026
Sync lgse/strata#1990–#2040: QA-sweep fixes, #2022 module split, clipboard formats, path-bar middle-click
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Programs opened from Strata started in
/(#1989).leave_launch_folder()moves Strata to/at startup so it never keeps a mount busy (#1729), andgio::AppInfo::launchspawns a program with the parent's working directory unless its desktop entry setsPath, so every launched program inherited/.launch_with_recent_registration, which every Open and Open With launch goes through, now callslaunch_in_folder. It enters the folder of the first file, launches, and returns to the previous folder right away. GIO spawns synchronously insidelaunch, so the child starts in the file's folder while Strata leaves it as soon aslaunchreturns and still keeps no mount busy. Files without a local path, and a folder Strata cannot enter, launch as before. A desktop entry'sPathstill wins, and D-Bus activated applications are unaffected.Open in Terminal already passes its folder explicitly and is unchanged. URI launches (
launch_default_for_urifor links and help pages) have no file folder and are unchanged.Test, failing without the change:
ui::open_with::tests::launched_programs_start_in_the_folder_of_the_first_filelaunchessh -c 'pwd > started-in' sh %fon a file in a temporary folder, checks that the test process is back in its own folder, and that the program wrote the file's folder.Visual evidence
Not a visual change.
How to test
~/notes, and open a text file in it with a GUI editor such as Neovide or gVim.:pwdin the editor: it prints~/notes, not/.Related issue
Fixes #1989