DEV Community

Indra Wahyu
Indra Wahyu

Posted on

Add Right Click Script Nautilus

In this post I want to share how to add items on right click in Nautilus, in this case I want to make it open with vscode. First go to the nautilus directory

cd ~/.local/share/nautilus/scripts/
Enter fullscreen mode Exit fullscreen mode

Next, create script file

nano "Open With VSCode"
Enter fullscreen mode Exit fullscreen mode

Insert this script to file, and save

#!/bin/bash
code .
Enter fullscreen mode Exit fullscreen mode

Make your script executable

chmod 775 Open\ With\ VSCode
Enter fullscreen mode Exit fullscreen mode

Restart nautilus

nautilus -q; nautilus;
Enter fullscreen mode Exit fullscreen mode

Now, i can open vscode with right click nautilus
open vscode with right click nautilus


Reference

Top comments (0)