dbus unit tests
Alec Leamas
leamas.alec at gmail.com
Thu Dec 7 11:43:11 UTC 2023
Hi list,
more on this...
On 05/12/2023 12:47, Alec Leamas wrote:
> On 05/12/2023 12:04, Simon McVittie wrote:
>> On Tue, 05 Dec 2023 at 10:13:42 +0100, Alec Leamas wrote:
>>> I'm working with a program (still opencpn) which is about to bring
>>> some unit
>>> tests using dbus. These tests works outside the sandbox in a native
>>> build.
>>>
>>> However, they fail when applied in the flatpak build. The reason
>>> seems to be
>>> that there is no dbus session bus, DBUS_SESSION_BUS_ADDRESS is
>>> undefined.
>>
>> The autobuilders used by Linux distributions for traditional, non-Flatpak
>> packaging systems like dpkg and RPM typically do not provide a session
>> bus either, so this is a problem that would have to be solved with or
>> without Flatpak.
>>
>> The upstream project (opencpn) should probably use dbus-run-session(1)
Indeed. And as for flatpak-builder this is actually fixed since a year
ago in a PR [1]. My problem is basically that we are supporting older
distros with flatpak-builder versions which not has picked up this.
Cheers!
--alec
[1] https://github.com/flatpak/flatpak-github-actions/pull/83
More information about the Flatpak
mailing list