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?
Ubuntu – Open Nautilus as a new tab in an existing window
browsergnomenautilustabswindow-manager
Best Answer
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.