XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add notification actions after layering packages

Signed-off-by: Shiloh Fen <shiloh@shilohfen.com>

matrixfurry.com a279a6b1 931d946e

verified
+7 -2
+7 -2
src/atomic-xr/envision.nu
··· 53 53 54 54 if ($missing_packages | is-not-empty) { 55 55 rpm-ostree install ...$missing_packages 56 - # TODO: Notification actions 57 - notify-send -u critical "Package(s) installed" "Please reboot or use `rpm-ostree ex apply-live` before attempting to launch Envision." 56 + job spawn { 57 + match (notify-send -u critical "Package(s) installed" "Please reboot or use `rpm-ostree ex apply-live` before attempting to launch Envision." -A reboot="Reboot" -A live="Apply Changes Live") { 58 + "reboot" => (systemctl reboot) 59 + "live" => (pkexec rpm-ostree ex apply-live) 60 + } 61 + } 62 + null 58 63 } 59 64 } 60 65