Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AbbasAtaei1991 opened this issue May 16, 2024 · 1 comment
Labels
a: desktop Running on desktop platform-mac Building on or for macOS specifically platform-web Web applications specifically team-desktop Owned by Desktop platforms team tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@AbbasAtaei1991
Copy link

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!

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label May 17, 2024
@darshankawar
Copy link
Member

Thanks for the report. This doesn't seem to be specific to chrome, but for desktop as well, I see new instance created for each debug session.

Screenshot 2024-05-17 at 1 14 49 PM Screenshot 2024-05-17 at 1 16 07 PM

I looked at if there's an existing issue for this, but couldn't find one, so will keep it open for team's attention.

@darshankawar darshankawar added platform-web Web applications specifically a: desktop Running on desktop labels May 17, 2024
@darshankawar darshankawar changed the title Chrome Instances Clutter Dock on macOS When Running Flutter Projects Chrome and desktop Instances Clutter Dock on macOS When Running Flutter Projects May 17, 2024
@darshankawar darshankawar added tool Affects the "flutter" command-line tool. See also t: labels. platform-mac Building on or for macOS specifically team-desktop Owned by Desktop platforms team and removed in triage Presently being triaged by the triage team labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: desktop Running on desktop platform-mac Building on or for macOS specifically platform-web Web applications specifically team-desktop Owned by Desktop platforms team tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests

2 participants