Window focus behavior: opening file from Nemo switches workspace to existing window instead of current workspace

Open
#13,919 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
javascript, linux

Research direction

No file or test is named. Start by locating Muffin's EWMH activation path for gio/xdg-open requests, then clarify whether current-workspace, existing-window, or smart behavior is intended. Done should include an agreed setting or desktop-entry hint and tests showing that opening a file does not unexpectedly switch workspaces.

Written by the indexing model from the issue text.

Description

Issue

When opening a file from Nemo (via gio open / xdg-open), if the target application already has an open window on another workspace, Cinnamon (Muffin) switches to that workspace and raises the existing window instead of opening a new window in the current workspace.

Expected behavior

Option to open files in the current workspace (new window or new tab in current workspace) without switching workspaces.

Current behavior

Muffin follows EWMH "activate existing window" behavior: switches to the workspace where the application window already exists and raises it.

Workarounds tried

  • gsettings set org.cinnamon.muffin window-focus-mode 'sloppy' — no effect
  • gsettings set org.cinnamon.muffin raise-on-click false — partial
  • Application-specific --new-window flags — app-dependent

Request

Add a setting in Muffin/Cinnamon settings:

  • org.cinnamon.muffin window-open-behavior = current-workspace | existing-window | smart
  • Or per-application hint via .desktop file (X-Cinnamon-Open-In-Current-Workspace=true)

Environment

  • Cinnamon 6.x / Linux Mint 21.x
  • Muffin 6.x
  • Nemo 6.x
Dominant language
JavaScript
Stars
5.6k
Forks
915
Avg merge
5d 22h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/cinnamon

All issues in linuxmint/cinnamon

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.