Skip to content

fix(desktop): complete symlink support implementation and enable CI for PRs - #7107

Closed
jerome-benoit wants to merge 4 commits into
anomalyco:devfrom
jerome-benoit:fix/desktop-symlink-support-complete
Closed

fix(desktop): complete symlink support implementation and enable CI for PRs#7107
jerome-benoit wants to merge 4 commits into
anomalyco:devfrom
jerome-benoit:fix/desktop-symlink-support-complete

Conversation

@jerome-benoit

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #7102 which was merged incomplete. Completes the symlink support implementation and enables CI validation for PRs.

Changes

Desktop symlink support:

  • Use tauri::process::current_binary() instead of tauri::utils::platform::current_exe()
  • Pass AppHandle to get_sidecar_path() to provide required &Env parameter
  • Update install_cli() and sync_cli() to pass AppHandle through call chain

CI improvements:

  • Enable nix-desktop workflow on pull_request events with same paths as push

Context

PR #7102 introduced tauri::process::current_binary() but didn't pass the required &Env parameter, causing build failures. This PR fixes the implementation by properly threading the AppHandle through the call chain.

…or PRs
Follow-up to anomalyco#7102 which was merged incomplete:
- Use tauri::process::current_binary() instead of tauri::utils::platform::current_exe()
- Pass AppHandle to get_sidecar_path() to provide required &Env parameter
- Update install_cli() and sync_cli() to pass AppHandle through call chain
- Enable nix-desktop workflow on pull_request events for same paths as push
CopilotAI review requested due to automatic review settings January 6, 2026 18:26
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR completes the incomplete symlink support implementation from #7102 by properly threading the AppHandle parameter through the call chain to enable tauri::process::current_binary() API usage, and enables CI validation for pull requests.

  • Updates function signatures to accept and pass AppHandle for symlink-aware binary path resolution
  • Fixes build failures by providing the required &Env parameter to tauri::process::current_binary()
  • Enables the nix-desktop CI workflow for pull request events

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

FileDescription
packages/desktop/src-tauri/src/lib.rsUpdates spawn_sidecar to pass app parameter when calling get_sidecar_path for non-Windows platforms
packages/desktop/src-tauri/src/cli.rsUpdates get_sidecar_path to accept AppHandle and use tauri::process::current_binary; updates install_cli to accept and pass AppHandle; updates sync_cli to pass app when calling install_cli
.github/workflows/nix-desktop.ymlAdds pull_request trigger with same path filters as push trigger to enable CI validation for PRs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jerome-benoit
jerome-benoitforce-pushed the fix/desktop-symlink-support-complete branch 3 times, most recently from c181704 to 14d0d35CompareJanuary 6, 2026 18:51
@jerome-benoit
jerome-benoitforce-pushed the fix/desktop-symlink-support-complete branch from 14d0d35 to 562df96CompareJanuary 6, 2026 18:53
@jerome-benoit

Copy link
Copy Markdown
ContributorAuthor

Closing this PR - it contained unrelated files from branch history. Opening clean PR with only the necessary changes.

@jerome-benoit
jerome-benoit deleted the fix/desktop-symlink-support-complete branch January 13, 2026 00:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jerome-benoit