Closed rtgiskard closed 2 years ago
For gtk application(tested with Gtk-3.0), generally the registered dbus interface include snippet like this:
<interface name="org.gtk.Application"> <method name="Activate"> <arg type="a{sv}" name="platform-data" direction="in"> </arg> </method>
Currently the member name is matched with the pattern in validators.py:
_elementre = re.compile(r'^[A-Za-z][A-Za-z0-9_]*$')
For which name with dash like platform-data will be invalid, the pattern need to be update to support gtk application
according to the specification, the original behaviour is right, however Gtk currently does not follow the specification, the patch may be present as a temporary solution for the existing gtk applications
:+1:
For gtk application(tested with Gtk-3.0), generally the registered dbus interface include snippet like this:
Currently the member name is matched with the pattern in validators.py:
_elementre = re.compile(r'^[A-Za-z][A-Za-z0-9_]*$')
For which name with dash like platform-data will be invalid, the pattern need to be update to support gtk application