Files
Zeyad Yasser b3c05c968f cmd/snap: record snap-run-inhibit notice (#13770)
* cmd/snap: record snap-run-inhibit notice

Record a snap-run-inhibit notice when snap run is inhibited due refresh.

* cmd/snap: remove old desktop notifications (thanks @pedronis @zyga)
* cmd/snap: always send notices when snap run is inhibited
	+ fallback to text if no snap has the marker snap-refresh-observe
	interface connected and a terminal is detected.
* cmd/snap: send text fallback notification to stderr (thanks @bboozzoo)
* cmd/snap: initialize inhibition flow only when it is needed

Signed-off-by: Zeyad Gouda <zeyad.gouda@canonical.com>

* tests/main: add test for snap run inhibition flows

* test/main/snap-run-inhibition-flow: remove text fallback check
	Text fallback is inconsistent across systems due to the terminal
	checks in snapd. It is hard to mock a real terminal in all systems
	while redirecting output to a file for testing.

Signed-off-by: Zeyad Gouda <zeyad.gouda@canonical.com>

---------

Signed-off-by: Zeyad Gouda <zeyad.gouda@canonical.com>
2024-04-12 14:58:44 +02:00
..
2023-09-25 13:22:14 +02:00
2023-09-25 13:22:14 +02:00
2023-09-25 13:22:14 +02:00
2023-01-16 14:23:11 +01:00
2022-05-19 17:54:19 +01:00
2021-10-26 10:18:03 +01:00
2023-08-28 16:01:09 +02:00