Skip to content
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

Error: GSettings key shortcut-focus-other-pane not found in schema com.github.amezin.ddterm when trying to show ddterm #1167

Open
1 of 2 tasks
farmaazon opened this issue Jan 15, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@farmaazon
Copy link

farmaazon commented Jan 15, 2025

GNOME Shell version

GNOME Shell 47.2

Linux distro

"Garuda Linux"

ddterm version

ddterm 57 revision d4919ed
Extension 57 revision d4919ed

Session type

X11

Special configuration

  • High DPI
  • More than one monitor

All installed extensions

appindicatorsupport@rgcjonas.gmail.com
  Name: AppIndicator and KStatusNotifierItem Support
  Description: Adds AppIndicator, KStatusNotifierItem and legacy Tray icons support to the Shell
  Path: /usr/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com
  URL: https://github.com/ubuntu/gnome-shell-extension-appindicator
  Enabled: Yes
  State: ACTIVE

ddterm@amezin.github.com
  Name: ddterm
  Description: Another drop down terminal extension for GNOME Shell. With tabs. Works on Wayland natively
  Path: /usr/share/gnome-shell/extensions/ddterm@amezin.github.com
  URL: https://github.com/ddterm/gnome-shell-extension-ddterm
  Version: 57
  Enabled: Yes
  State: ACTIVE


### ddterm settings dump

```ini
[/]
background-color='rgb(23,20,33)'
foreground-color='rgb(208,207,204)'
panel-icon-type='none'
scrollback-unlimited=true
shortcut-win-new-tab-after-current=['<Primary><Shift>t']
show-scrollbar=true
tab-policy='never'
theme-variant='system'
use-theme-colors=false
window-maximize=false
window-size=0.52386363636363631

Description

Every time I try to toggle on ddterm, I get an error notification, and nothing shows:

Child process exited with code 1

JS ERROR: Error: GSettings key shortcut-focus-other-pane not found in schema com.github.amezin.ddterm
_checkKey@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:779:23
createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:729:30
update_shortcut@file:///usr/share/gnome-shell/extensions/ddterm@amezin.github.com/ddterm/app/application.js:623:45
bind_shortcut@file:///usr/share/gnome-shell/extensions/ddterm@amezin.github.com/ddterm/app/application.js:618:9
startup/<@file:///usr/share/gnome-shell/extensions/ddterm@amezin.github.com/ddterm/app/application.js:334:18
startup@file:///usr/share/gnome-shell/extensions/ddterm@amezin.github.com/ddterm/app/application.js:333:42
_init/<@file:///usr/share/gnome-shell/extensions/ddterm@amezin.github.com/ddterm/app/application.js:213:22
@/usr/share/gnome-shell/extensions/ddterm@amezin.github.com/bin/com.github.amezin.ddterm:126:17

gsettings seems to actually know the key:

$ gsettings get com.github.amezin.ddterm shortcut-focus-other-pane
@as []

Reproduced also on my second machine, with same specifications (up-to-date Garuda) but with wayland.

Reverting to 55.1 fixes the issue.

@farmaazon farmaazon added the bug Something isn't working label Jan 15, 2025
@amezin
Copy link
Member

amezin commented Jan 15, 2025

Could you attach the built package (gnome-shell-extension-ddterm-*.pkg.tar.zst) here?

Also, in the old ddterm version v55, what does env output? In particular, is GSETTINGS_SCHEMA_DIR set (it shouldn't be)?

I cannot reproduce the problem in a VM

@farmaazon
Copy link
Author

farmaazon commented Jan 16, 2025

All versions I have; built from AUR using paru:

gnome-shell-extension-ddterm-55.tar.gz
gnome-shell-extension-ddterm-56.tar.gz
gnome-shell-extension-ddterm-57.tar.gz

env does not print GSETTINGS_SCHEMA_DIR

@amezin
Copy link
Member

amezin commented Jan 16, 2025

These are source code archives, not Arch packages

@farmaazon
Copy link
Author

True.

packages.zip

Zipped, because GH doesn't like zst

@amezin
Copy link
Member

amezin commented Jan 19, 2025

What's the output of ls /usr/share/gnome-shell/extensions/ddterm@amezin.github.com/schemas?

@amezin
Copy link
Member

amezin commented Jan 19, 2025

Finally reproduced it.

You first have to install v48-3. It will create /usr/share/gnome-shell/extensions/ddterm@amezin.github.com/schemas/gschemas.compiled in post-install script https://aur.archlinux.org/cgit/aur.git/commit/?h=gnome-shell-extension-ddterm&id=23c2f73aff829a0e570749c3e2a1101f6ee4da94

And then upgrade to v57. Starting from v54 the schema has been moved to the correct location - /usr/share/glib-2.0/schemas/ - https://aur.archlinux.org/cgit/aur.git/commit/?h=gnome-shell-extension-ddterm&id=b0c18da8606d5b9a11599caf9d547cb23e36a067, where compilation is handled by pacman automatically. But old /usr/share/gnome-shell/extensions/ddterm@amezin.github.com/schemas/gschemas.compiled remains after upgrade, and schemas get loaded from it instead of the new location. This file needs to be removed, I'll check if it can be done automatically during package upgrade.

Honestly I'm not sure why v55 works.

@amezin
Copy link
Member

amezin commented Jan 19, 2025

Please try v58-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants