diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de240b91..8bcc9b19 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: - name: Install Dependencies run: | apt update - apt install -y meson libadwaita-1-dev libfwupd-dev libgranite-7-dev libgtk-4-dev libgtop2-dev libgudev-1.0-dev libudisks2-dev libswitchboard-3-dev libappstream-dev valac + apt install -y meson libadwaita-1-dev libfwupd-dev libgranite-7-dev libgtk-4-dev libgtop2-dev libgudev-1.0-dev libudisks2-dev libswitchboard-3-dev libappstream-dev libpackagekit-glib2-dev valac - name: Build env: DESTDIR: out diff --git a/README.md b/README.md index 7e124621..30c0432a 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ You'll need the following dependencies: * libudisks2-dev * libadwaita-1-dev * libappstream-dev +* libpackagekit-glib2-dev * meson * valac * switcheroo-control (at runtime) diff --git a/src/DBus/SystemUpdate.vala b/src/DBus/SystemUpdate.vala index 4929a5c2..5e9a16ca 100644 --- a/src/DBus/SystemUpdate.vala +++ b/src/DBus/SystemUpdate.vala @@ -17,6 +17,7 @@ public interface SystemUpdate : Object { public struct UpdateDetails { string[] packages; int size; + Pk.Info[] info; } public signal void state_changed (); diff --git a/src/Views/OperatingSystemView.vala b/src/Views/OperatingSystemView.vala index b94ae18b..ebfd28eb 100644 --- a/src/Views/OperatingSystemView.vala +++ b/src/Views/OperatingSystemView.vala @@ -373,6 +373,10 @@ public class About.OperatingSystemView : Gtk.Box { details.packages.length ).printf (details.packages.length); + if (Pk.Info.SECURITY in details.info) { + updates_image.icon_name = "software-update-urgent"; + } + packages.splice (0, packages.get_n_items (), details.packages); } catch (Error e) { updates_description.label = _("Unable to determine number of updates"); diff --git a/src/meson.build b/src/meson.build index 5c4edf49..bc8da285 100644 --- a/src/meson.build +++ b/src/meson.build @@ -38,6 +38,7 @@ shared_module( dependency('gtk4'), dependency('libadwaita-1'), dependency('libgtop-2.0'), + dependency('packagekit-glib2'), dependency('gudev-1.0'), dependency('udisks2'), appstream_dep,