I was wondering if it is possible to remember what directories are open in one session of Nautilus, so that next time starting Nautilus, I can reopen the directories. Bookmark opened directories one by one is not what I ask for. Thanks and regards!

  • Am using tabs in nautilus; ideally, there'd be a way to dump the locations and have a script to re-open those locations in tabs when needed. I might try and think about how to do this eventually, but if anyone can "get the show on the road" sooner, I'd be v glad!! – nutty about natty Mar 9 '13 at 22:07

Nautilus does not support this functionality. What you might want to do is use session saving, or write a script to have nautilus open those directories by default.

You could replace nautilus with this script in your start up applications. (I will need more time for the script part).

| improve this answer | |
  • Thanks! How exactly is that? – Tim Jul 7 '11 at 2:57
  • @Tim is...? You mean how to write the script or to save your session? (BTW I will update my answer shortly). – RolandiXor Jul 7 '11 at 2:58
  • @RolandiXor How shortly is 'shortly' :-) – Parto Jun 27 '14 at 8:09

I have yet to try this out myself, but this looks promising: "hot off the press" here's a relatively recent find:

So I did a little tweaking of the command and came up with this:

nautilus --sm-client-state-file ~/.config/session-state/nautilus-xxxxxxxxxx.desktop &

And it worked beautifully!

Last edited by tg3793; June 9th, 2012 at 08:37 AM.

Let's hope it works!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.