Repository navigation
[v3] Fix OpenFileManager on windows - #4375
Conversation
- Use cmd.SysProcAttr.CmdLine to invoke explorer.exe on Windows - separate platform-specific code in package fileexplorer into separate files
WalkthroughThe platform-specific logic for opening the file explorer has been refactored from a monolithic implementation into separate files for Darwin (macOS), Linux, and Windows. Each platform now defines its own Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant fileexplorer (cross-platform)
participant PlatformSpecific (darwin/linux/windows)
Caller->>fileexplorer: OpenFileManager(path, selectFile)
fileexplorer->>PlatformSpecific: explorerBinArgs(path, selectFile)
PlatformSpecific-->>fileexplorer: bin, args
fileexplorer->>PlatformSpecific: sysProcAttr(path, selectFile)
PlatformSpecific-->>fileexplorer: *syscall.SysProcAttr
fileexplorer->>fileexplorer: exec.CommandContext(bin, args, sysProcAttr)
fileexplorer-->>Caller: error (if any)
Possibly related PRs
Suggested labels
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Thanks 🙏 Please could you add an entry to the changelog located at |
Done! |
|
* Fix OpenFileManager on windows - Use cmd.SysProcAttr.CmdLine to invoke explorer.exe on Windows - separate platform-specific code in package fileexplorer into separate files * Update changelog.mdx --------- Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
* Fix OpenFileManager on windows - Use cmd.SysProcAttr.CmdLine to invoke explorer.exe on Windows - separate platform-specific code in package fileexplorer into separate files * Update changelog.mdx --------- Co-authored-by: Lea Anthony <lea.anthony@gmail.com>


Description
Fixes bug described in https://discord.com/channels/1042734330029547630/1387077176565960755/1387077176565960755 , where OpenFileManager fails to operate correctly on Windows.
Changes:
Type of change
Please select the option that is relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration using
wails doctor.If you checked Linux, please specify the distro and version.
Test Configuration
Please paste the output of
wails doctor. If you are unable to run this command, please describe your environment in as much detail as possible.Checklist:
website/src/pages/changelog.mdxwith details of this PRSummary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
OpenFileManagerfunction on Windows.Refactor