Currently, if I click a launcher, shortcut icon, etc., I will get a new Nautilus window. If there is already a Nautilus window open, I would rather it open up in a new tab in the existing window (as if I had done Ctrl + T and browsed to the new location). How can I make this happen?
I wrote a bash script and a launcher for that.
First, create the file:
Then paste the following, and save:
Then run the command:
Now, to create the launcher file, run this command:
Paste the following, and save:
Log out, or restart to update the application list and you're done.
Try that. Hope it helps.
UPDATE
Added a location as a script parameter
UPDATE 2
Replaced xdotool type with xclip
UPDATE 3
Cleaned up the process by adding numbers. Added mkdir command. Updated the first "if statement" because if nautilus is managing the desktop, it will have a pid, but no active window, so better to use wmctrl. Added quotes around the first argument in case there are spaces. Changed the icon for nautilus to be system default in the .desktop file.
I believe it is not possible as
1) It is a suggested idea at Ubuntu Brainstorm that wasn't implemented yet,
2) And supposedly after analyzing the source code Shiki didn't find a way to pass this call to nautilus.
This is fixable very easily in CentOS 6.2 by going into the Nautilus preferences, on the "Behavior" tab and clicking the box called "Always open in browser windows".
You will know it worked because from that point on, in your folder browsing window, you will see a left hand nav on the window which is the method that Nautilus uses to "re-use" the explorer window.
So, basically, all you need to figure out is "how to enable the left-hand navigation menu in a Nautilus browser window".
Whatever desgua said is somewhat right.
One option you have is to press Ctrl + T to open a new tab in the same window.
Or press F3 in Nautilus for split view.
Using the bash script above as a starting (thank you!), I created a one-window per workspace script, ThunarTab, specifically for Thunar in XFCE. The script also allows opening multiple directories at once using the "Open All" context menu on the Desktop. I give a detailed description and a downloadable file of it at https://forums.linuxmint.com/viewtopic.php?f=42&t=244076 "[Tutorial] Improving Thunar in XFCE by opening new tabs instead of windows with Bash."