How can I open nautilus with given location with selection
xdg mime default nautilus
make nautilus default file manager arch
open current folder in terminal linux
xdg-open change default application
xdg open howto
xdg settings set default file manager
mimeapps list folder
We can open Nautilus with given directory in Terminal like:
However, I want to open "/home/jeeeyul" and select "workspace" and reveal it rather than open "workspace" directory. Can I do this from Terminal?
Nautilus can open the parent folder of
workspace, but includes no option to control selection.
The only possible option I can think of is
xdotool, which can emulate mouse and keyboard events within a window.
For mouse, if you can predict where the
workspace icon or list item will be located within the Nautilus window, you can open the window with specific dimensions using
--geometry, then use
xdotool to cause a mouse click at that location. If you have trouble predicting the location, you can perhaps rename
workspace to something that will appear at the top of a list, and have Nautilus sort items by name ... then rename it back after the click.
Keyboard might be a better option. You could use
xdotool to send keyboard commands and/or type things in the Nautilus window that would force the selection. You'd need to experiment as to how. (I don't know what version of Nautilus you're using, or what other files might be in that folder.)
These solutions are hardly ideal. With any luck, someone else with more in-depth knowledge of Gnome will post something exceeding clever.
linux, We can open Nautilus with given directory in Terminal like: nautilus /home/jeeeyul/workspace. However, I want to open "/home/jeeeyul" and select "workspace" You can also do gnome-open .. gnome-open is similar to open on Mac which tries to open the file using the best matching application. By default, gnome-open . on Ubuntu will open the current directory in Nautilus. There is an open command in Ubuntu as well but it does not work in this case.
I do not know if this was recently added but you can open a folder's parent and select it using the following method:
nautilus -s /home/jeeeyul/workspace
This will open nautilus in the /home/jeeeyul/ path and with the workspace folder selected.
Just wanted to add this in case anyone else was still searching for a solution.
How to open a nautilus directory and select a file in it from the , Do you mean so a nautilus window opens, with a specific file highlighted and the status At first, the file doesn't look to be selected, but that's just because the nautilus window isn't active. You can open a file as if you had double clicked it in nautilus using the xdg-open command: gnome-open PATH. The gnome-terminal-nautilus add-on for Nautilus provides a right-click context menu item to quickly open a new gnome-terminal window in the current location. This little tweak to the nautilus interface is super handy for those times when you need to run a quick command over some files that you are looking at in the graphical file browser.
Yes, you can do this using terminal. After you start terminal, you have to switch user you can use sudo -i for switch as root user and then use nautilus.
Ubuntu Linux Bible, If not, you can navigate to any location on your system in Nautilus by doing the following: 1. Open Nautilus in a predefined location by selecting it from the Places The menu bar has disappeared from Nautilus, as also have the resize handles and the top-bar right-click menu (except for 'Close'). The window gets a little smaller every time I open it, it's gradually disappearing and I can't presently correct it. I'm using Gnome not Unity, so the fixes for unity don't work.
Ubuntu 8.10 Linux Bible, Send the file to a specified device or create an archive file in compressed tar Open Nautilus in a predefined location by selecting it from the Places menu. 2. Nautilus is a different kind of science magazine. We deliver big-picture science by reporting on a single monthly topic from multiple perspectives. Read a new chapter in the story every Thursday.
Open a directory in the default file manager and select a file, Select specified URI in parent folder. 2. xdg-mime returns Thunar.desktop but xdg-open opens nautilus. xdg-mime To open the current directory open in Terminal, type the following command at the prompt and press Enter. nautilus . NOTE: Be sure to type a space between “nautilus” and the period (“.”). It doesn’t matter which directory is active in Terminal before jumping to a specific directory in Nautilus.
Fedora 11 and Red Hat Enterprise Linux Bible, Whatever size, location, and other setting you had for the folder the last time you Or select Applications System Tools File Browser to open Nautilus in Browser Icons in Nautilus often indicate the type of data that a particular file contains. nautilus admin:///usr/ to open the /usr/ directory as root in Nautilus. Editing text files with admin privileges. From Nautilus opened in this way, if you click on a text file that needs admin privileges, you will be prompted for password again, before it opens in your default editor such as Gedit. If you are using Ubuntu 17.10
- I am extremely sorry. will not do it again.