A text that arrives while the app is not running waits in imsd until the app is opened, and nothing notifies. Inside its flatpak the instance now asks the desktop portal's Background interface when it starts (not for the --send errand or --headless) to run on with the window closed and to start `imsd-messages --daemon` at login, the mode that imports and notifies with no window. The portal keeps the answer and writes the login entry again at each request it grants, so a deleted entry comes back while the background permission allows it; set to no, the permission makes the portal refuse the request, and an entry already written stays. Outside its own flatpak nothing is asked. tests/Portal covers the request path the answer arrives on and the options the request carries.
18 lines
671 B
C++
18 lines
671 B
C++
// SPDX-License-Identifier: GPL-3.0-only
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
|
|
|
/*
|
|
ImsdMessages.Bus — the GLib side of imsd-messages: the GDBus client of
|
|
imsd's /net/catcrafts/IMS1 on the system bus (the Messaging interface, and
|
|
the frozen interface's registration signal), the decoding of its
|
|
dictionaries, the desktop notifications, the app's own session-bus name and
|
|
the desktop portal (appearance, background). No window: the executable wires
|
|
this to the UI.
|
|
*/
|
|
export module ImsdMessages.Bus;
|
|
export import :Variant;
|
|
export import :Client;
|
|
export import :Notifier;
|
|
export import :Instance;
|
|
export import :Appearance;
|
|
export import :Background;
|