flutter / flutter/flutter

Chrome and desktop Instances Clutter Dock on macOS When Running Flutter Projects

Open
#148,489 2 comments 0 reactions 0 assignees View on GitHub
a: desktop P3 platform-macos platform-web team-web tool triaged-web
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

**Description:**
When running Flutter projects in Chrome on macOS, each debug session spawns a new Chrome instance which appears as a new icon in the dock. This behavior clutters the dock with multiple Chrome icons, particularly during frequent debug sessions.

**Steps to Reproduce:**
1. Run any Flutter project on macOS using the command `flutter run -d chrome`.
2. Observe that each new debug session adds a new Chrome icon to the macOS dock.

**Expected Behavior:**
Repeated runs of Flutter projects in Chrome should reuse the existing Chrome instance or at least not add new icons to the macOS dock.

**Actual Behavior:**
Each run of a Flutter project results in a new Chrome icon appearing in the dock.

**Possible Solution:**
Perhaps Flutter can include an option to reuse browser instances for macOS users, or better manage how new instances are handled with respect to macOS's dock.

**Flutter Doctor Output:**
Screenshot 2024-05-16 at 18 49 28

**Additional Information:**
- macOS Version: 14.3.1
- Chrome Version: 124.0.6367.202

Thank you for looking into this issue!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.