Repository navigation
Add a default launch mode on Windows - #110
Merged
Merged
Conversation
Started without a mode flag, as from a double-click or a shortcut, Rune injects the defaults a desktop launcher would pass. Only macOS and Linux had any, so on Windows it printed "one of --gui, --tui or --headless must be set" to a console nobody sees and exited. Give Windows the same defaults, -G -w "", so it opens the GUI. Other platforms keep no default; the table test covers one alongside the new Windows case (unstablebuild#68). Signed-off-by: Eric Brooks <[email protected]>
ernestrc
approved these changes
Sep 19, 2026
ernestrc
enabled auto-merge (squash)
September 19, 2026 00:50
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ernestrc
approved these changes
Sep 20, 2026
ernestrc
pushed a commit
that referenced
this pull request
Sep 20, 2026
…tening (#111) Part of Windows support (#68, coordinated on #81). Found by running a locally built `rune.exe` on Windows 11; graphics stay with #82. `newUnixListener` created `<dataDir>/sockets` only after `bind(2)` failed with `ENOENT`. On Windows, AF_UNIX reports a missing parent directory as `WSAENETDOWN` instead, so the directory was never created, every retry failed, and the home workspace's extensions never started. The directory is now created before the first bind; the retry loop keeps its stale-socket handling unchanged. Linux and macOS behave the same: the `ENOENT` path only ever created this directory, and `MkdirAll` on an existing one is a no-op. A new test starts a listener under a data directory that does not exist yet and checks the socket lands in `<dataDir>/sockets`. Verified natively: with this, #110 and the other Windows slices applied locally, a first launch on a fresh data directory logs zero errors and the socket file is created. Signed-off-by: Eric Brooks <[email protected]>
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.
Part of Windows support (#68, coordinated on #81). Found by running a locally built
rune.exeonWindows 11; graphics stay with #82.
Started without a mode flag, as from a double-click or a shortcut, Rune injects the defaults a
desktop launcher would pass. Only macOS and Linux had any, so on Windows it printed "one of --gui,
--tui or --headless must be set" to a console nobody sees and exited. Windows now gets the same
defaults,
-G -w "", so it opens the GUI.bundleZdotDiralready returns false there, so nozdotdir flag is added.
Test note:
TestAppLaunchArgshad a "windows unsupported" row asserting the old behavior; itbecomes "windows without zdotdir" expecting the GUI defaults, and a FreeBSD row keeps the
no-default branch covered. Verified natively: with no mode flag the GUI window opens and
launch.logis written under the data directory.