Stunkymonkey / nautilus-open-any-terminal

GNU General Public License v3.0
590 stars 60 forks source link

No such schema error during configuration when installed from PYPI #10

Closed aral closed 4 years ago

aral commented 4 years ago
  1. Install via PYPI instructions on Pop!_OS 19.10 (~ Ubuntu 19.10)
  2. Run:
    gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal kitty

Error:

No such schema “com.github.stunkymonkey.nautilus-open-any-terminal”

I do see the Open Gnome-Terminal here and Open Tilix here options in the context menu in Nautilus.

Stunkymonkey commented 4 years ago

if you installed it systemwide can you run: sudo glib-compile-schemas /usr/local/share/glib-2.0/schemas

aral commented 4 years ago

Right, so I figured out a workaround. It seems that at least on my system, they settings schema is being installed into:

~/.local/share/glib-2.0/schemas/

Once I realised that, all I had to do was to run:

glib-compile-schemas ~/.local/share/glib-2.0/schemas/

And then restart Nautilus again (nautilus -q).

And then I was able to include Kitty using the same line as in the issue:

gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal kitty

Would you like a PR to the readme to mention this?

aral commented 4 years ago

PS. Regarding your previous comment, @Stunkymonkey, even with a systemwide install, the schema is being copied into ~/.local/share/glib-2.0/schemas/ for me.

aral commented 4 years ago

PPS. Thanks for making this ;)

Stunkymonkey commented 4 years ago

I definitely have to dig deeper, why this is put into the home directory. The README would be a temporary solution. I will have to adjust the setup.py.

Thanks for reporting :wink:

aral commented 4 years ago

Agree + cool, I’ll leave it in your capable hands then :) Thanks again!

Stunkymonkey commented 4 years ago

since the glib-compile-schemas should be done by package maintainers I would not like to include this in the setup.py. instead there is now an information displayed to do so by hand. setup.py#33 I hope this will help in the future.

Stunkymonkey commented 4 years ago

new release will come in the next days