Skip to content

Windows installer shortcut starts CLI mode instead of the desktop UI #2

Description

@kapustazh

Summary

After installing Sync v0.7.1 using the official Windows installer, launching Sync from the Start menu does not open the desktop application. The installed executable starts in CLI mode and immediately exits instead.

Environment

  • Sync: v0.7.1, build 6673569
  • Installer: Sync_Windows_x64-setup.exe
  • Windows: x64, version 25H2, build 26200.8875
  • Installation location: %LOCALAPPDATA%\Sync\git-sync.exe

The downloaded installer matches the official v0.7.1 release asset:

  • Size: 30,844,549 bytes
  • SHA-256: 8DBC249E26E1FE4834883A9A406804D736C023A8805BDC247B97A5511A3C90D1

Steps to reproduce

  1. Download and install the official v0.7.1 Windows installer.
  2. Launch Sync from the Start menu, or run %LOCALAPPDATA%\Sync\git-sync.exe without arguments.
  3. Observe that no desktop window opens.

Actual behavior

When executed from a terminal, the no-argument invocation prints the CLI help and exits in approximately 0.3 seconds. The generated Start-menu shortcut also supplies no arguments.

Expected behavior

Launching the installed application from the Start menu should open the Sync desktop UI.

Workaround

Running the executable with the explicit UI argument successfully opens a responsive Welcome to Sync window:

&"$env:LOCALAPPDATA\Sync\git-sync.exe"--ui

Likely cause

In v0.7.1, should_launch_ui() returns true for an explicit ui/--ui argument or a matching macOS __CFBundleIdentifier. A no-argument Windows launch reaches the default false branch and is routed to the CLI:

https://github.com/sync-buzz/sync/blob/v0.7.1/crates/sync-app/src/main.rs#L39-L78

The Windows NSIS Start-menu shortcut launches git-sync.exe without --ui, so the shortcut cannot open the desktop application.

Suggested direction

  • Add --ui to the Windows installer shortcut target, or otherwise distinguish bundled desktop launches from intentional bare CLI invocations.
  • Preserve explicit subcommands and --no-ui as CLI mode.
  • Add a Windows test covering the installed shortcut/no-argument launch behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions