chore: add Makefile

This commit is contained in:
2022-09-24 23:55:13 +02:00
parent fa2f608ed2
commit e522a8776d
2 changed files with 28 additions and 0 deletions

11
Makefile Normal file
View File

@@ -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)

View File

@@ -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 <https://gitlab.gnome.org/GNOME/nautilus-python/#nautilus-python> for
additional information.
After installing or uninstalling, you must restart nautilus for the change to
take effect (`killall nautilus`).