-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nautilus-python not loading python-extension #126074
Comments
Idk how much help this is but have you tried looking at how I think that the following line specifically says that only extensions in |
tried it, but does not work. |
We rely on GNOME NixOS module setting
|
thanks for the expanation 👍 . If you have a second please look over my last commit: https://github.com/Stunkymonkey/nixpkgs/tree/nautilus-open-any-terminal |
Running nautilus in the console shows the following with Traceback (most recent call last):
File "/home/jtojnar/.nix-profile/share/nautilus-python/extensions/mat2.py", line 28, in <module>
from libmat2 import parser_factory
File "/nix/store/x7rfd5lxym1zx7m15yhk0i6hlbfr4cwd-python3.9-mat2-0.12.3/lib/python3.9/site-packages/libmat2/parser_factory.py", line 30, in <module>
__load_all_parsers()
File "/nix/store/x7rfd5lxym1zx7m15yhk0i6hlbfr4cwd-python3.9-mat2-0.12.3/lib/python3.9/site-packages/libmat2/parser_factory.py", line 27, in __load_all_parsers
importlib.import_module('.' + name, package='libmat2')
File "/nix/store/gras7a25yy9f7djmzrgh1bsiiacg0s9c-python3-3.9.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/nix/store/x7rfd5lxym1zx7m15yhk0i6hlbfr4cwd-python3.9-mat2-0.12.3/lib/python3.9/site-packages/libmat2/images.py", line 6, in <module>
import cairo
ModuleNotFoundError: No module named 'cairo' so that is an issue with extra dependencies ( |
my first goal will be to get the same error for i have Do I have to set
or is like this?
sorry I am a bit lost here 🙈 |
But yeah, something like the following should work: env "NAUTILUS_EXTENSION_DIR=$(nix-build -A gnome.nautilus-python --no-out-link)/lib/nautilus/extensions-3.0" "XDG_DATA_DIRS=$(nix-build -A mat2 --no-out-link)/share:$XDG_DATA_DIRS" nautilus |
this was exactly my problem. by adding this the extensions will get loaded. Thanks for your help. |
Describe the bug
nautilus-python
does not load python-extension of nautilus to display a context menu entry.To Reproduce
Steps to reproduce the behavior:
gnomeExtensions.nautilus-open-any-terminal
from Stunkymonkey@da1610bExpected behavior
a new context menu entry, that could open e.g.
alacritty
Additional context
Maybe I am doing something wrong. I am pretty new to
nix
. Maybe you could helpNotify maintainers
i guess @hedning, @dasj19, @maxeaubrey
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: