in my GNOME 2 ubuntu i used to issue this command to open a new window to browse the files in some folder:

nautilus ./

For example, i could go to a difficult location through the console, and when i found it I opened the window:

cd /home/santiago/Music/Blues/BB-King/Live/Live at...
nautilus ./

And that folder was displayed in the window, and i could browse it regulary.

But now I have GNOME 3 on Fedora 15 and that doesn't work any more.

I think it's becouse the process doesn't return control to the console, so if i want to do that different times, the subsequents calls to nautilus ./ open the first location.

Thank you!

migrated from askubuntu.com Oct 30 '11 at 20:48

This question came from our site for Ubuntu users and developers.

  • It is not a random window you want to open, it is nautilus. (You won't have any issues if use used xterm). – Basile Starynkevitch Oct 28 '11 at 19:34
  • Uhm, that makes sense. I didn't get the xterm part... – santiagobasulto Oct 28 '11 at 19:37
  • Sorry for the typo: I mean "no issues if you used xterm". The point is that nautilus is a GTK3 application which probably do some GtkApplication (session related) things that other GTK or X11 applications don't. – Basile Starynkevitch Oct 28 '11 at 19:46
  • have you tried just the nautilus . (without the slash)? – marto Oct 30 '11 at 12:24

It is not so much GNOME 2/3 but the difference in process handling. Previously Nautilus handled desktop (i.e. folders and background). However in Gnome 3 it is no longer handled by it and hence the Nautilus is not running.

For various reasons the first call opens the program while others simply sends IPC signals to it. There was known bug that Nautilus interpreted calls with respect to its current working directory instead of the calling process. I believe it is fixed in 3.2 (I cannot find bug number in gnome bugzilla right now).

As a temporary measure I would advice to use $PWD variable:

nautilus $PWD/.

instead of

nautilus .
  • Pro tip: you can configure Nautilus to handle the desktop, and therefore will probably will make this behavior work, by enabling "Have file manager handle the desktop" under the Desktop section. – laebshade Oct 31 '11 at 23:21
  • Note to Googlers and other people who may have stumbled upon this question: the above comment is no longer true. The code in Nautilus allowing it to draw the desktop was completely removed in GNOME 3.8. – strugee Oct 27 '13 at 1:34

Your Answer

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