← Back to team overview

dx-packages team mailing list archive

[Bug 1021143] Re: Type mismatch in libbamf bamf_control_register_application_for_pid() and dbus interface

 

** Changed in: unity (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1021143

Title:
  Type mismatch in libbamf bamf_control_register_application_for_pid()
  and dbus interface

Status in BAMF Application Matching Framework:
  Fix Released
Status in Unity:
  Fix Released
Status in “bamf” package in Ubuntu:
  Fix Released
Status in “unity” package in Ubuntu:
  Fix Released
Status in “bamf” source package in Quantal:
  Fix Released

Bug description:
  Hi,

  I get the following warning when using
  bamf_control_register_application_for_pid()

  ** (test2:11575): WARNING **: Failed to register application: メッセージの型
  '(su)' は期待した型 '(si)' に一致しません

  It is because in lib/libbamf/bamf-control.c:
  ...
    if (!dbus_g_proxy_call (priv->proxy,
                            "RegisterApplicationForPid",
                            &error,
                            G_TYPE_STRING, application,
                            G_TYPE_UINT, pid,
                            G_TYPE_INVALID,
                            G_TYPE_INVALID))
  ...

  However,  in src/org.ayatana.bamf.xml:
      <method name="RegisterApplicationForPid">
        <arg name="application" type="s" direction="in"/>
        <arg name="pid" type="i" direction="in"/>
      </method>

  
  I made a patch to correct the problem.
  Please merge it. 

  Thanks,
  Paul

To manage notifications about this bug go to:
https://bugs.launchpad.net/bamf/+bug/1021143/+subscriptions