Skip to content

"New RStudio Window" on Mac dock icon opens existing open project in new session #15669

Closed

Description

@gtritchie

System details

RStudio Edition : Desktop
RStudio Version : all Electron versions up until latest daily (I tried 2025.04.0+273)
OS Version      : Mac-specific
R Version       : any

Steps to reproduce the problem

(Noticed while verifying fix for #15409)

  • start RStudio and open a project
  • on the Mac dock, right-click on the RStudio icon and select "New RStudio Window"

Describe the problem in detail

  • new window opens and the same project is open in it

Describe the behavior you expected

  • on Qt versions of RStudio, the new session did not open the project that was open in the other window

Activity

  1. added
    new
    and removed
    new
    on Feb 1, 2025
  2. added this to the Later milestone on Feb 10, 2025
  3. tobadia commented on Sep 11, 2026

    @tobadia

    Hi there
    I know this sounds like a minor issue, but could this be considered for fix sooner that "later" for milestone? Fully appreciate that it's an inconvenience not causing to much harm, but for someone working multiple projects in distinct rstudio instances, this gets annoying. Or, is the root cause really too complex to make this a quick fix ?
    Thanks!

  4. self-assigned this
    on Sep 11, 2026
  5. gtritchie commented on Sep 11, 2026

    @gtritchie
    MemberAuthor

    Likely an easy fix, will target 2026.10. Things like this are usually more a case of there being 1000 nice-to-have small fixes in the backlog and limited time, so a ping like this is a good way to bring them back to our attention.

  6. gtritchie commented on Sep 11, 2026

    @gtritchie
    MemberAuthor

    Update after digging into the old Qt implementation: the Dock's New RStudio Window there simply started a brand-new RStudio, exactly as if launched from the Finder. It started in your Default working directory and knew nothing about the window it came from, so whether a project opened was down to Restore most recently opened project at startup (Global Options > General > Basic, on by default) — meaning it usually reopened the same project too. The old behavior wasn't deliberate about this.

    The incoming fix makes the new window start with no project, in your Default working directory. That matches where the Qt version started, minus the project coming back.

    One thing that stays as it has always been: a window with no project open records "no project" when it closes, so if you close the projectless window last, RStudio won't reopen your project the next time you start it. That's how every projectless session behaves today, including Session ▸ New Session.

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

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions