-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
+github.com/essembeh/gnome-extensions-cli #5991
Comments
For some reason I don't know yet, gext from pkgx doesn't work ( Because of gsettings: ❯ gext list
No schemas installed
💥 Error: Command '['gsettings', 'get', 'org.gnome.shell', 'enabled-extensions']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/felipecrs/.pkgx/github.com/essembeh/gnome-extensions-cli/v0.10.1/venv/bin/gext", line 6, in <module>
sys.exit(run())
^^^^^
File "/home/felipecrs/.pkgx/github.com/essembeh/gnome-extensions-cli/v0.10.1/venv/lib/python3.11/site-packages/gnome_extensions_cli/cli.py", line 116, in run
raise error
File "/home/felipecrs/.pkgx/github.com/essembeh/gnome-extensions-cli/v0.10.1/venv/lib/python3.11/site-packages/gnome_extensions_cli/cli.py", line 108, in run
handler(args, manager, store)
File "/home/felipecrs/.pkgx/github.com/essembeh/gnome-extensions-cli/v0.10.1/venv/lib/python3.11/site-packages/gnome_extensions_cli/commands/list_.py", line 47, in run
enabled_uuids = manager.list_enabled_uuids()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/felipecrs/.pkgx/github.com/essembeh/gnome-extensions-cli/v0.10.1/venv/lib/python3.11/site-packages/gnome_extensions_cli/filesystem.py", line 110, in list_enabled_uuids
stdout = subprocess.check_output(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/felipecrs/.pkgx/python.org/v3.11.9/lib/python3.11/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/felipecrs/.pkgx/python.org/v3.11.9/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['gsettings', 'get', 'org.gnome.shell', 'enabled-extensions']' returned non-zero exit status 1.
❯ gsettings get org.gnome.shell enabled-extensions
@as []
❯ pkgx +gext env gsettings get org.gnome.shell enabled-extensions
No schemas installed |
no, actually; looks like glib needs to know where to find the schemas. |
Just found out: ❯ pkgx +gext env bash -c 'unset XDG_DATA_DIRS && gsettings get org.gnome.shell enabled-extensions'
@as []
❯ pkgx +gext env bash -c 'gsettings get org.gnome.shell enabled-extensions'
No schemas installed |
I compared my Then unsetting it works. I'm not sure what's the way forward though. |
i've got fixes to load in gsettings and schemas, but org.gnome.shell isn't available. it looks like https://gitlab.gnome.org/GNOME/gnome-shell provides it, so that'd need to be packaged. |
fixing gext still requires https://gitlab.gnome.org/GNOME/gnome-shell ref: #5991 (comment)
Hm... but I expect If you package schemes by yourself, there's a chance schemes are for a different GNOME version than the one my system is using. |
that's a good point. does it work if you do |
there's always going to be weird issues integrating pieces of large systems via a system like pkgx's. |
fixing gext still requires https://gitlab.gnome.org/GNOME/gnome-shell ref: #5991 (comment)
Same issue. But this works: ❯ pkgx +gext env bash -c 'XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/local/share/:/usr/share/" gsettings get org.gnome.shell enabled-extensions'
@as [] So, I think pkgx could be improved to add some sensible defaults like But this would be a change in libpkgx I suppose. |
That's because: When So I just think pkgx should be extra careful when overriding |
But yeah, this isn't simple at all. |
overriding users' it's possible mxcl might accept a fallback value, but iirc those are described in the spec itself. |
Oh. Maybe we have a bug in pkgx then? ❯ env | grep XDG
XDG_RUNTIME_DIR=/run/user/1002/
❯ pkgx env | grep XDG
XDG_DATA_DIRS=/home/felipecrs/.pkgx/gnu.org/coreutils/v9.5.0/share
XDG_RUNTIME_DIR=/run/user/1002/ If pkgx was not supposed to alter |
Interesting. So, it adds to it, which means if it's unset that could cause problems. Very interesting. I wonder what problem that was added to solve. |
To make sure this doesn't go to limbo, would you reopen this issue? |
i don't think this is the correct issue; i've opened one to add gnome-shell, which might fix your issue, assuming the schemae don't mismatch. i'll open a discussion on libpkgx about the XDG_ issue. |
Thanks a lot! |
A very useful tool to manage GNOME extensions.
https://github.com/essembeh/gnome-extensions-cli
The text was updated successfully, but these errors were encountered: