diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f60ef49 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +PREFIX = /usr/local +NAUTILUS_PYTHONS_EXTENSIONS = $(PREFIX)/share/nautilus-python/extensions + +.PHONY: install +install: + install -m644 -D -t $(NAUTILUS_PYTHONS_EXTENSIONS) ./kitty-nautilus.py + +.PHONY: remove +remove: + rm $(NAUTILUS_PYTHONS_EXTENSIONS)/kitty-nautilus.py + rmdir --ignore-fail-on-non-empty -p $(NAUTILUS_PYTHONS_EXTENSIONS) diff --git a/README.md b/README.md index bc270e8..76c1658 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,20 @@ gnome-terminal-nautilus or gnome-console-nautilus). - [kitty](https://github.com/kovidgoyal/kitty/) - [nautilus](https://gitlab.gnome.org/GNOME/nautilus/) - [nautilus-phython](https://gitlab.gnome.org/GNOME/nautilus-python/) + +Your distribution most likely has a `nautilus-python` package. + +## Install + +Use `make install` to install the extension globally. To uninstall run `make +remove`. You may place the extension in any of the directories from which +`nautilus-python` accepts extensions: + +- `$XDG_DATA_HOME/nautilus-python/extensions/` +- `$XDG_DATA_DIRS/nautilus-python/extensions/` + +See for +additional information. + +After installing or uninstalling, you must restart nautilus for the change to +take effect (`killall nautilus`).