Questions tagged [nautilus-script]

An executable shell script for nautilus

Filter by
Sorted by
Tagged with
0 votes
0 answers
55 views

Installing PeaZip. Need Nautilus Scripts Folder for Context Menu Addition. Where Is It?

The instructions for PeaZip seem to say that, if I want PeaZip to appear in the Nautilus context menu, I should copy a specified PeaZip program folder to the system's Nautilus scripts folder. The ...
1 vote
2 answers
84 views

Unable to launch any script with sudo command in, when launched from Nautilus script menu

Is there a new way to launch nautilus from a basic script? #!/bin/bash echo "Open File Manager as Root" sudo nautilus Opening from Nautilus scripts context menu does not launch Nautilus if ...
  • 7,847
1 vote
0 answers
31 views

Scripts missing in Nautilus context menu after update from Ubuntu 18.04 to 20.04

After updating Ubuntu from Ubuntu 18.04 to 20.04, the scripts entry in Nautilus context (right-click) menu is missing. I do have a ~/.local/share/nautilus/scripts/ directory containing scripts. The ...
  • 11
3 votes
1 answer
461 views

Filemanager-actions not available for Groovy

I have been using filemanager-actions to implement some custom actions in my Files (Nautilus) application. I am a non-LTS Ubuntu user. I have used all the versions of Ubuntu since 18.10 on my main ...
  • 7,064
1 vote
2 answers
111 views

How assign delete key to nautilus script in Ubuntu 20.04

I want to assign Delete key to my script. It works when I add to scripts-accels: <Primary>Delete myScript.sh but Delete myScript.sh keeps default behavior (move to trash) and ignores my script....
  • 113
0 votes
1 answer
153 views

Combine JPG and MP3 to MP4 using FileManager-Actions and shell script (Ubuntu 18.04)

What I try to achieve: Expanding my Nautilus context menu by an action to simply select a JPG-file and a MP3-file to combine them to a MP4-file like I already do in terminal by this command: ffmpeg -r ...
  • 11
1 vote
1 answer
178 views

Nautilus script - Bash script to extract current folder

I would like to use a Nautilus script that calls a Python script of mine, passing as a required argument the path of the current folder. This would avoid me the trouble of refactoring the Python ...
  • 261
1 vote
1 answer
2k views

Nautilus Bash Script, how to delete old files after FFMPEG conversion?

I am writing my first ever Nautilus script but I am not sure how to continue. What do I need to add to this nautilus script so that all MP4 files in the folder are deleted after FFMPEG finishes ...
1 vote
1 answer
172 views

How to write python script which opens last working directory in nautilus (when we launch nautilus)?

Elementary OS's file manager opens the last working directory whenever we launch that file manager. How can I write a script for Nautilus which will work same as given example above?
4 votes
1 answer
198 views

Nautilus script that creates a password protected ZIP

In the latest versions of ubuntu, right clicking on a file doesn't give you the possibility to create password protected archives (see this question). I still need to do that kind of things though so ...
  • 391
2 votes
0 answers
154 views

Is it possibile to create Nautilus custom column generated by script?

Is there any possibility to add a custom (my own) column to nautilus folder view? Content of that column would be generated by script. For example, I have got an additional information about ...
1 vote
2 answers
1k views

How to run C/C++ program using context menu (right click option)

I want to learn C/C++. Here my requirement is not to use any IDE. I want to run my C/C++ program in following way, I will write "Cpp1.cpp" //which will print "Hello World". Save the file and close. ...
2 votes
3 answers
634 views

Nautilus (context menu) script to quickly rename a file using $RANDOM - but how?

I want to add a context menu entry to nautilus with a custom script but I don't really know how to write this (I'm very inexperienced with this stuff). Basically I want to rename selected files with $...
  • 45
7 votes
3 answers
4k views

Script to merge Video and subs then delete the existing files (non recursive)

I've been using mkvmerge to merge a video file and subtitles, I'm using the following command mkvmerge -o output.mkv video.mp4 subtitles.srt Which is working fine but as you can probably guess this ...
2 votes
2 answers
1k views

Show symlink target in nautilus

Is it possible to show the target of a symbolic link in Nautilus as a column in the listing of a folder? Please don't point me to ls -l, I do know about it and use it, but it would be nice for UI ...
  • 283
23 votes
1 answer
520 views

How to get IMDb info in Nautilus properties?

I want to see IMDb information about movie files on my Nautilus properties screen, using Nautilus scripts or actions. It's a really complex thing to do, I understand that, but the article Extending ...
4 votes
2 answers
2k views

Nautilus - no support for hard links?

I finally got round to studying and understanding hard links in my quest to check I have understood the basics, of which I have managed to skip a lot of. After realizing how brilliant they are, I ...
  • 5,531
9 votes
2 answers
3k views

Can I make nautilus show book covers as thumbnails for Epub files?

The Problem Can I make nautilus show thumbnails of book covers for files in .epub format? It shows thumbnails for pdf files but not .epub. Is this achievable by adding a thumbnailer? Each of these ....
3 votes
2 answers
7k views

Can I rename files within a folder with the name of the parent folder? [duplicate]

this is a unique situation, which can be better explained with an example Example 1 let's say I have a folder called A, B.mkv and C.srt are two files in the folder, I want to rename these files to A....
11 votes
1 answer
2k views

How to set folder icons of multiple folders automatically?

How to set the first picture of every folder as its folder icon? The question linked above has an answer consisting a script which has been working for me. It just needs a little improvement. What ...
2 votes
1 answer
2k views

How to Sort/Search video files on the basis of properties?

This is a unique situation I've more than 500 Movies in a partition. what I wanted to do is search movie files on the basis of Property Video Dimension, so that I could delete anything which is below ...
4 votes
2 answers
1k views

How can I set a shortcut key to open the currently selected file in nautilus?

Tired of right clicking Open With to open a file in a specific application, I would like to set a shortcut to open a file in e.g. Gimp. I don't want to change default open action though. (Ubuntu 14.04)...
1 vote
3 answers
290 views

Nautilus right click script for base64

i would like to add nautilus script for right click,like convert selected file with base64 but no luck.Regular command in terminal is like: base64 input.jpg output.txt This is my closest script to ...
13 votes
4 answers
3k views

How to open Nautilus directory in current Terminal?

I don't like to have dozens of terminals opened. Is there a way to add Open in current Terminal instead of Open in Terminal when using Nautilus?
  • 6,909
2 votes
1 answer
74 views

Nautilus script or action to install selected debs

When multiple need to be installed, a such option will be very useful. What command should be put into a script in .local/share/nautilus/scripts? Or in Nautilus-Actions Configurations Tool?
user avatar
4 votes
2 answers
775 views

Open another instance of current directory in Nautilus

In Microsoft Windows, when you are open File Explorer at a specific path, you can press Ctrl+N to open another file explorer in the same path. But in Ubuntu when I try Ctrl+N it opens Home Folder. How ...
0 votes
1 answer
223 views

Nautilus Scripts - Select every second file

Is it possible to write a script to select every second file I found something similar http://g-scripts.sourceforge.net/cat-filesysmgt.php but it's been taken off line. I create numerous routine ...
  • 652
2 votes
1 answer
289 views

How to obtain list of copied files in Nautilus

Imagine I copied several files in Nautilus to paste them somewhere else; how could I obtain the list of copied filenames to, for example, use it in a script?
  • 151
3 votes
1 answer
364 views

Shell script not working [duplicate]

For a suggested solution in another topic I tried to write my first shell script. It did not work as intended. In order to get a quick access to the folder /opt/lampp/htdocs when using XAMPP I tried ...
3 votes
3 answers
828 views

Open the parent folder of a symbolic link via right-click?

We can open a parent folder of any file using nautilus script like #!/bin/bash nautilus "$1" If I do this script on symbolic link which is on the ~/Desktop, then it will open the Desktop itself. ...
  • 2,732
0 votes
1 answer
1k views

How to use Evince to loop over ps files in current folder?

I love Evince, I use it as an image viewer of my eps figures (a one-page document). It's super light-weight and clean. I also like how it re-renders the ps documents as you zoom-in and zoom-out, this ...
  • 215
12 votes
5 answers
14k views

How To Rename Multiple Photos and Videos Based on EXIF Data?

I often import photos and videos (mostly having JPG and MOV extensions) from digital cameras and tablets to my PC, and I would ideally like to see them sorted according to the dates and times they ...
  • 10.7k
1 vote
1 answer
234 views

Command prompt in nautilus window

I am on an Acer Aspire 5920, running Ubuntu 12.04 32 bit. Earlier, by mistake, I exited a terminal during: sudo apt-get upgrade The computer said there were internal errors, and I should restart. ...
  • 691
0 votes
2 answers
426 views

Nautilus Script for ESET scanner

I have installed Eset antivirus as per the instructions given here All is working well but instead of gui I want to have a responsive terminal option available too thus I created a symlink via: sudo ...
0 votes
1 answer
220 views

Right Click on Open Space with scripts in nautilus 13.04

In 12.04, I was able to create a script in the ~.gnome2/nautilus-scripts folder and it was available when I 'right click'. I have a script that creates a folder structure for new customers: mkdir ...
13 votes
3 answers
13k views

How to get Nautilus-scripts working Nautilus?

How to get Nautilus-scripts (Terminal here, Root Nautilus, Root Gedit) working on Ubuntu 13.04? I copied those scripts to .gnome2/nautilus-scripts folder but it dose not seem to work anymore
3 votes
2 answers
394 views

Integration of archives navigation in nautilus

Would there be a tool to integrate the navigation in the content of an archive in Nautilus, instead of using Archive Manager?
2 votes
1 answer
174 views

Is it possible to have Nautilus Scripts menu items without icons?

I have opted for menus without icons system-wide for reasons of simplicity and speed. But I still get icons in Nautilus context menus. I don't mind the icons on Open With menu items too much, but all ...
  • 10.7k
2 votes
2 answers
482 views

Is it possible to assign/change custom icons for files in a batch / from commandline?

Actually, I'm talking about icons for Nautilus Scripts, and I have many of them. Although I prefer menus without icons, I cannot prevent icons from being displayed in Nautilus context menu items Open ...
  • 10.7k
6 votes
4 answers
2k views

(Nautilus Scripts) $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; have problems with space

So the script is: #!/bin/bash for line in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do if [[ "$line" = "" || "$line" = " " ]]; then exit else unzip "$line" -d "temp" fi done It ...
  • 1,192
15 votes
1 answer
13k views

How can I install a Nautilus script?

I found a nautilus script I would like to use. How do I install it?
  • 20.8k
5 votes
1 answer
1k views

Nautilus tags/labels/marks/columns for folders/files

Is there any way how to mark folders or files with tags(or labels, new columns or whatever) in Nautilus? It would be nice to sort marked folders or files through this tags. Especially my first idea ...
  • 755
10 votes
1 answer
3k views

How do I make a custom right click command for nautilus? [duplicate]

Possible Duplicate: How to customize the context menu in Nautilus? I'm trying to make a Mark as executable command for the right click in nautilus for a faster work flow. I came up with this ...
  • 143
10 votes
2 answers
885 views

How to open a folder in a new pane in Nautilus?

When I rightclick a folder in Nautilus I find these options "Open in New Window" and "Open in New Tab". Is it possible to add an option "Open in New Pane" which would open the selected folder in a new ...
  • 10.2k
6 votes
1 answer
5k views

Nautilus sftp via command line

I regularly connect to a server via ssh. Lately I've started copying files to and from it, and I find scp very annoying, mainly because bash cannot auto complete over ssh. I find the connect to ...
  • 705
1 vote
1 answer
350 views

Nautilus scripts in top level of contextual menu

Is it possible to have Nautilus scripts appear in the top level of Nautilus' contextual menu, rather than in a Scripts folder?
  • 161
1 vote
2 answers
1k views

How to change desktop background to the next/prev background image with mouse right cick menu depending on wallch program?

I want a script or a tool to change the desktop background using mouse right click menu on the desktop to find in the menu Next and Previous buttons for the next and past background, but depending on ...
  • 4,821
0 votes
1 answer
3k views

can not run vlc from shell script

I am trying to develop a nautilus script which read selected filepath and en-queue in vlc player. Problem is if filename is space separated then we need to add extra '\' in file name. But when i run ...
  • 7,949