AlynxZhou / showmethekey

Show keys you typed on screen.
https://showmethekey.alynx.one/
Apache License 2.0
306 stars 27 forks source link

[Bug] Settings schema 'one.alynx.showmethekey' is not installed Trace/breakpoint trap #26

Closed IceAsteroid closed 11 months ago

IceAsteroid commented 11 months ago

Cannot launch showmethekey in the build directory directly anymore in new releases, as the output complaints by running 'showmethekey-gtk' in "build/bin/":

(showmethekey-gtk:12316): GLib-GIO-ERROR **: 00:53:51.787: Settings schema 'one.alynx.showmethekey' is not installed
Trace/breakpoint trap

By the way, 'showmethekey-cli' in the same directory works without problem.

Meson compile log:

00:48 $ meson setup --prefix=/usr . ..
The Meson build system
Version: 1.2.0
Source dir: /home/apple/TestArea/showmethekey
Build dir: /home/apple/TestArea/showmethekey/build
Build type: native build
Project name: showmethekey
Project version: 1.11.1
C compiler for the host machine: cc (gcc 12.2.0 "cc (GCC) 12.2.0")
C linker for the host machine: cc ld.bfd 2.39
Host machine cpu family: x86_64
Host machine cpu: x86_64
Configuring config.h using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency libevdev found: YES 1.13.0
Run-time dependency libudev found: YES 243
Run-time dependency libinput found: YES 1.23.0
Run-time dependency threads found: YES
Run-time dependency gtk4 found: YES 4.10.4
Run-time dependency libadwaita-1 found: YES 1.3.1
Run-time dependency x11 found: YES 1.8.7
Run-time dependency glib-2.0 found: YES 2.78.0
Run-time dependency json-glib-1.0 found: YES 1.6.6
Run-time dependency gio-2.0 found: YES 2.78.0
Run-time dependency cairo found: YES 1.16.0
Run-time dependency pango found: YES 1.50.14
Run-time dependency xkbcommon found: YES 1.5.0
Run-time dependency xkbregistry found: YES 1.5.0
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program msgfmt found: YES (/usr/bin/msgfmt)
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Configuring one.alynx.showmethekey.policy using configuration
Configuring one.alynx.showmethekey.desktop using configuration
Build targets in project: 10

showmethekey 1.11.1

  User defined options
    prefix: /usr

Found ninja-1.11.1 at /usr/bin/ninja
✔ ~/TestArea/showmethekey/build [master|✔]                   
00:49 $ meson compile
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja
[19/19] Linking target showmethekey-gtk/showmethekey-gtk

Haven't tested to install showmethekey to the system yet.

Or anyway to uninstall the program clearly after installation by "meson install"?

Any ideas?

AlynxZhou commented 11 months ago

That's how GSettings schema works, you have to install the schema XML system-wide to let glib compile them.

Or anyway to uninstall the program clearly after installation by "meson install"?

If your distro has package of showmethekey, use it via package manager. If not, meson install should output files it copied, just delete them.