Restore Last Window Tabs on Startup#3661
Conversation
Save split view and tab URIs on window close and restore them when starting Nemo with no explicit locations.
|
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. |
|
@mtwebster you are correct on both accounts. It is the most recent window that comes back (https://docs.gtk.org/gtk3/method.Application.get_windows.html) I had to move the "#include "nemo-desktop-window.h"" outside the conditional include, since the NEMO_IS_DESKTOP_WINDOW is included in that header file and it was a conditional include. Hope I did this right. |
|
🥳 |
* Restore last closed window tabs Save split view and tab URIs on window close and restore them when starting Nemo with no explicit locations. * adding tabs * adding tabs * adding tabs * adding tabs * adding tabs * adding tabs * adding tabs * option under 'behaviour' in preferences to toggle on restoring tabs * simplified sessions save logic to only save the window that exits * addressing pr comments regarding last window logic
|
I don't know much about this platform GitHub, does the purple "Merged" means this feature was accepted and will come? Does it have any predicted date for it to appear and in which Nemo version? I'm new on Linux. As of 25/04/2026, my current Nemo version is 6.6.3+zena 500 on Linux Mint (Cinnamon). I installed Double Commander and Dolphin over this, but i'm not satisfied with them. DB's UI looks odd and old and Dolphin's tabs work differently than both DB and Nemo. If Nemo gets Persistent Tabs, that'd be awesome and all i need |
|
@lothominor54712 welcome to linux! Nemo will get persistent tabs but looking at the current release it does not have my pull request included. You can however compile the code on your computer and have it currently with tabs already if you don't want to wait for them to make a release. Since you said you're new, I suspect you might not know how to compile it yourself. I can walk you through it if you don't want to wait for the official release. |
That's so generous, not many people would bother going that far. But i'm good! Tysm I've managed to do it with some outside help guiding me through it. I followed these steps: https://justpaste.me/HMCy Above everything, thank you for the project itself. Really appreciate all of this |
|
you've built it from scratch on linux mint! well done! and yes, you'll find that linux thrives on community contributions and open source projects. without foss, i wouldn't have been able to make this small contribution to my favorite file manager that others have found useful. |
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
Implementation Details
org.nemo.window-stateschema