Skip to content

Conversation

@kavehtehrani
Copy link

Adds an optional feature to restore the tabs and split-view state of the last closed Nemo window when launching without explicit file arguments. This is similar to the 'session restore' feature in most modern web browsers.

Changes

  • New preference: "Restore last window tabs on startup" toggle in Preferences → Behaviour (default: off)
  • Session state storage: Saves tab URIs, active tab indices, and split-view state when a window is closed
  • Restore logic: On startup (when no file arguments provided), restores saved tabs if the preference is enabled
  • Fallback behavior: Falls back to opening Home directory if restore fails or preference is disabled

Implementation Details

  • Session state is saved to GSettings keys under org.nemo.window-state schema
  • Only native file system locations are saved (excludes search tabs and remote locations)
  • When multiple windows are open on quit, the state of the last non-desktop window is saved
  • Default startup behavior is unchanged (feature is opt-in)

@kavehtehrani
Copy link
Author

kavehtehrani commented Dec 22, 2025

I read through 3240 and 2832 and seems like this was previously requested and closed due to resource constraints and being a low priority request.

I have tested this on my machine on Fedora and Ubuntu and has been working fine without any issues. I love Nemo and this is the only major things for me that Nemo is lacking. Happy to make any feedback and make my favorite file manager even better.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant