Skip to content

fix(desktop): respect app arguments when opening launch files - #2330

Open
J4ck1e2000 wants to merge 1 commit into
nsgo-dev:mainfrom
J4ck1e2000:fix/issue-2264
Open

J4ck1e2000 wants to merge 1 commit into
nsgo-dev:mainfrom
J4ck1e2000:fix/issue-2264

Conversation

@J4ck1e2000

Copy link
Copy Markdown
Contributor

Summary

Windows and Linux no longer interpret arguments after -- as files to open. nsgo.LaunchFiles(parse) lets an app choose its document arguments, and nsgo.LaunchFiles(nil) disables the scan. Startup and single-instance handoff use the same launch result. Registered link launches still work after --, and Windows link launches still bypass file parsing.

Fixes #2264.

Targets

  • Shared code (nsgo.Run option and launch parsing)
  • Windows
  • Linux

Screenshots

None; launch argument handling only.

Verification

  • go tool nsgo test -run '^TestLaunch(SortsFilesFromLinks|FilesCustomParser|WindowsLinkPrecedence)$' ./internal/engine -- -count=1
  • go tool nsgo test -run '^TestOpenFilesWaitForAHandler$' ./core -- -count=1
  • go tool nsgo check -target windows,linux -jobs 4 (both OSes on arm64 and x64)

Native Windows/Linux desktop integration and the full repository test suite were not run locally.

Checklist

  • Conventional Commit title.
  • Launch architecture, English and Chinese building guides, app-author skill, and changelog fragment updated.
  • No third-party code, assets, or dependency changes.

🤖 openai-codex/gpt-6.2-sol

Stop the default Windows and Linux file scan at -- without changing link delivery. Let apps replace or disable the scan and use the same launch result for startup and handoff.

Fixes nsgo-dev#2264
@github-actions github-actions Bot added size/M documentation Improvements or additions to documentation Windows Linux core bug Something isn't working and removed size/M labels Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core documentation Improvements or additions to documentation Linux Windows

Projects

None yet

1 participant