
These actions are set this way to make sure a user doesn’t accidentally execute a script. I believe the default action for a script is edit. The file will be opened in the preferred application for files of that type if a file is provided. The URL will be opened in the users preferred web browser if a URL is provided. The custom action command line is xfce4-terminal -hold -command=%f. xdg-open - command in the Linux system is used to open a file or URL in the users preferred application. It will show Open PowerShell window here option. Another option, Press Shift and Right Click. It will open Power Shell and automatically navigate to the current folder.

The URL will be opened in the user's preferred web browser if a URL is provided. You will see Open Windows PowerShell option. xdg-open - command in the Linux system is used to open a file or URL in the user's preferred application. It allows me to right click a script and select this menu item. Click on File at the top left corner of the current folder location. I have a custom action, which creates a Thunar context menu entry called, “Run Script”. Where are you trying to execute this script - from Thunar or from the command line (Terminal)? A dialog will be displayed with the text, “Are you sure you want to open all folders?”īut program-wise, something you create, I think you might find XFCE Custom Actions helpful. Steps 3-5, could be replaced with a double click of Downloads.

From there, you can either select “Open in 2 New Tabs” or “Open in 2 New Windows”, or “Open With”.
File browser open in terminal update#
Once finish, reopen all terminals or update his source running source /.zshrc command and now you can use the new commands. and then right click to get the context menu. Windows (WSL2) and macOS use the same command to open the file explorer or the default web browser, on Ubuntu (Linux) need to be specified each one.

With the Command Prompt opened, you’re ready to find and open your file. NOTE: You can also click on the resulting icon for your script to run it.
File browser open in terminal Pc#
If I look at the given command inside the bash script, I would say that you are trying to open two Thunar windows, one at ~/Documents and another at ~/Downloads. First, open the Command Prompt on your PC by typing cmd in the Windows Search bar and then selecting Command Prompt from the search results. This allows you to press Alt + F2 to access the command bar from Unity, type nh (or whatever filename you assigned to the script), and press Enter, to open your Home directory without ever opening a Terminal window. Thunar /home/Edammer/Documents/ /home/Edammer/Downloads/
