Bus, main: start at login through the Background portal
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.
This commit is contained in:
parent
b27200a3c5
commit
f07a3716b3
6 changed files with 221 additions and 9 deletions
|
|
@ -6,7 +6,7 @@ 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's appearance settings. No window: the executable wires
|
||||
the desktop portal (appearance, background). No window: the executable wires
|
||||
this to the UI.
|
||||
*/
|
||||
export module ImsdMessages.Bus;
|
||||
|
|
@ -15,3 +15,4 @@ export import :Client;
|
|||
export import :Notifier;
|
||||
export import :Instance;
|
||||
export import :Appearance;
|
||||
export import :Background;
|
||||
|
|
|
|||
Loading…
Reference in a new issue