Extensions with dependencies are still selectable, and fail silently

Summary:

Extensions that have dependencies can still be selected, but just do nothing (should be greyed out). Regression from 1.3.x

Steps to reproduce:

  • Copy the attached Extension files (.inx and .py) into your local extensions repository
  • Open Inkscape and run Extensions>Testing>Jabberwock
  • Create a jabberwock executable and add it to path
  • Repeat step 2

What happened?

Nothing the first time (as jabberwock likely doesn't exist) and a message when the executable is present

What should have happened?

Without the executable, the extension should be greyed out.

Sample attachments:

jabberwock.inx

<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
  <name>Jabberwocky</name>
  <id>org.krir17.testing.dependency_bug</id>
  <dependency type="executable" location="path">jabberwock</dependency>
  <effect needs-live-preview="false">
    <effects-menu>
      <submenu name="Testing" />
    </effects-menu>
  </effect>
  <script>
    <command location="inx" interpreter="python">jabberwocky.py</command>
  </script>
</inkscape-extension>

jabberwocky.py

#! /usr/bin/env python
import inkex
class Jabberwocky(inkex.EffectExtension):
    'Demonstrate a bug with dependency in inx file.'
    def effect(self):
        inkex.errormsg('Beware the Jabberwock!')
if __name__ == '__main__':
    Jabberwocky().run()

Version info

Inkscape 1.4 (40280c0668, 2024-10-20)

                      Compile  (Run)
    GLib version:     2.80.3
    GTK version:      3.24.43 (3.24.43)
    glibmm version:   2.66.7
    gtkmm version:    3.24.9
    libxml2 version:  2.12.8
    libxslt version:  1.1.42
    Cairo version:    1.18.0 (1.18.0)
    Pango version:    1.54.0 (1.54.0)
    HarfBuzz version: 8.5.0 (8.5.0)

    OS version:       Fedora Linux 40 (Workstation Edition)
Edited by KrIr17