JoseExposito / touche

The desktop application to configure Touchégg
GNU General Public License v3.0
543 stars 26 forks source link

"reference to undefined property 'inspectSource'" / "Unsatisfied dependency: Gtk" blocking errors when launching generated Debian package 2.0.5 #71

Closed l0f4r0 closed 2 years ago

l0f4r0 commented 2 years ago

Describe the bug

I cannot launch /usr/bin/com.github.joseexposito.touche because of errors "reference to undefined property 'inspectSource'" and "Unsatisfied dependency: Gtk".

NB: I've generated a Debian package from archive.tar.gz 2.0.5 (no error or "gtk dependency not met" -- see #70 for full logs). See "Your environment" section below for all my gtk installed packages.

Expected behaviour

Launch touche program with success.

Actual behaviour

$ /usr/bin/com.github.joseexposito.touche

Gjs-Message: 20:57:36.103: JS WARNING: [resource:///com/github/joseexposito/touche/js/com.github.joseexposito.touche.js line 816 > eval 7]: reference to undefined property "inspectSource"
Unsatisfied dependency: Gtk

Your environment

$ dpkg -l | awk '$1 ~ /ii/ && $2 ~ /gtk/{print}'

ii  gir1.2-gtk-3.0:amd64                   3.24.5-1                                amd64        GTK+ graphical user interface library -- gir bindings
ii  gir1.2-gtksource-3.0:amd64             3.24.9-2                                amd64        gir files for the GTK+ syntax highlighting widget
ii  gir1.2-javascriptcoregtk-4.0:amd64     2.36.0-3~deb10u1                        amd64        JavaScript engine library from WebKitGTK - GObject introspection data
ii  gtk-update-icon-cache                  3.24.5-1                                amd64        icon theme caching utility
ii  gtk2-engines-pixbuf:amd64              2.24.32-3                               amd64        pixbuf-based theme for GTK+ 2.x
ii  gtk2-engines-xfce                      3.2.0-4                                 amd64        GTK+-2.0 theme engine for Xfce
ii  libavahi-ui-gtk3-0:amd64               0.7-4+deb10u1                           amd64        Avahi GTK+ User interface library for GTK3
ii  libcanberra-gtk3-0:amd64               0.30-7                                  amd64        GTK+ 3.0 helper for playing widget event sounds with libcanberra
ii  libcanberra-gtk3-module:amd64          0.30-7                                  amd64        translates GTK3 widgets signals to event sounds
ii  libcheese-gtk25:amd64                  3.31.90-1                               amd64        tool to take pictures and videos from your webcam - widgets
ii  libclutter-gtk-1.0-0:amd64             1.8.4-4                                 amd64        Open GL based interactive canvas library GTK+ widget
ii  libcolord-gtk1:amd64                   0.1.26-2                                amd64        GTK+ convenience library for interacting with colord
ii  libdbusmenu-gtk3-4:amd64               18.10.20180917~bzr490+repack1-1         amd64        library for passing menus over DBus - GTK-3+ version
ii  libgirara-gtk3-3:amd64                 0.3.2-1                                 amd64        library for minimalistic user interfaces (shared libraries)
ii  libgtk-3-0:amd64                       3.24.5-1                                amd64        GTK+ graphical user interface library
ii  libgtk-3-bin                           3.24.5-1                                amd64        programs for the GTK+ graphical user interface library
ii  libgtk-3-common                        3.24.5-1                                all          common files for the GTK+ graphical user interface library
ii  libgtk-3-dev:amd64                     3.24.5-1                                amd64        development files for the GTK+ library
ii  libgtk2-perl                           2:1.24992-1+b2                          amd64        Perl interface to the 2.x series of the Gimp Toolkit library
ii  libgtk2.0-0:amd64                      2.24.32-3                               amd64        GTK+ graphical user interface library
ii  libgtk2.0-bin                          2.24.32-3                               amd64        programs for the GTK+ graphical user interface library
ii  libgtk2.0-common                       2.24.32-3                               all          common files for the GTK+ graphical user interface library
ii  libgtkmm-2.4-1v5:amd64                 1:2.24.5-4                              amd64        C++ wrappers for GTK+ 2 (shared libraries)
ii  libgtkmm-3.0-1v5:amd64                 3.24.0-2                                amd64        C++ wrappers for GTK+ (shared libraries)
ii  libgtksourceview-3.0-1:amd64           3.24.9-2                                amd64        shared libraries for the GTK+ syntax highlighting widget
ii  libgtksourceview-3.0-common            3.24.9-2                                all          common files for the GTK+ syntax highlighting widget
ii  libgtkspell0:amd64                     2.0.16-1.2                              amd64        spell-checking addon for GTK's TextView widget
ii  libgvc6-plugins-gtk                    2.40.1-6+deb10u1                        amd64        rich set of graph drawing tools - gtk plugins
ii  libjavascriptcoregtk-4.0-18:amd64      2.36.0-3~deb10u1                        amd64        JavaScript engine library from WebKitGTK
ii  libreoffice-gtk2                       1:6.1.5-3+deb10u7                       amd64        office productivity suite -- GTK+ 2 integration
ii  libwebkit2gtk-4.0-37:amd64             2.36.0-3~deb10u1                        amd64        Web content engine library for GTK
ii  libwxgtk-media3.0-gtk3-0v5:amd64       3.0.4+dfsg-8                            amd64        wxWidgets Cross-platform C++ GUI toolkit (GTK+ 3 media library runtime)
ii  libwxgtk-media3.0-gtk3-dev:amd64       3.0.4+dfsg-8                            amd64        wxWidgets Cross-platform C++ GUI toolkit (GTK+ 3 media library development)
ii  libwxgtk3.0-0v5:amd64                  3.0.4+dfsg-8                            amd64        wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii  libwxgtk3.0-gtk3-0v5:amd64             3.0.4+dfsg-8                            amd64        wxWidgets Cross-platform C++ GUI toolkit (GTK+ 3 runtime)
ii  libwxgtk3.0-gtk3-dev:amd64             3.0.4+dfsg-8                            amd64        wxWidgets Cross-platform C++ GUI toolkit (GTK+ 3 development)
ii  lightdm-gtk-greeter                    2.0.6-1                                 amd64        simple display manager (GTK+ greeter)
ii  python-gtk2                            2.24.0-5.1+b1                           amd64        Python bindings for the GTK+ widget set
ii  qt5-gtk-platformtheme:amd64            5.11.3+dfsg1-1+deb10u4                  amd64        Qt 5 GTK+ 3 platform theme
ii  vim-gtk3                               2:8.1.0875-5+deb10u2                    amd64        Vi IMproved - enhanced vi editor - with GTK3 GUI
ii  xdg-desktop-portal-gtk                 1.2.0-1                                 amd64        GTK+/GNOME portal backend for xdg-desktop-portal
JoseExposito commented 2 years ago

Yes, this happens because of the problem explained in https://github.com/JoseExposito/touche/issues/70#issuecomment-1098399211

JavaScript is not a compiled language, that's why you see these errors at run time. For the moment, there is no way to use a Debian package because of the missing dependencies, but you can use Flatpak.