Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package transactional-update-notifier for 
openSUSE:Factory checked in at 2023-02-14 16:42:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/transactional-update-notifier (Old)
 and      /work/SRC/openSUSE:Factory/.transactional-update-notifier.new.27156 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "transactional-update-notifier"

Tue Feb 14 16:42:39 2023 rev:2 rq:1065541 version:1.1.0.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/transactional-update-notifier/transactional-update-notifier.changes
      2022-12-15 19:25:46.584251300 +0100
+++ 
/work/SRC/openSUSE:Factory/.transactional-update-notifier.new.27156/transactional-update-notifier.changes
   2023-02-14 16:42:40.189462548 +0100
@@ -1,0 +2,6 @@
+Mon Feb 13 16:09:05 UTC 2023 - Richard Brown <rbr...@suse.com>
+
+- v1.1.0.2
+  * Make notifications a little less urgent
+
+-------------------------------------------------------------------

Old:
----
  transactional-update-notifier-1.1.0.obscpio

New:
----
  transactional-update-notifier-1.1.0.2.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ transactional-update-notifier.spec ++++++
--- /var/tmp/diff_new_pack.BJFlTP/_old  2023-02-14 16:42:41.001467367 +0100
+++ /var/tmp/diff_new_pack.BJFlTP/_new  2023-02-14 16:42:41.017467462 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package transactional-update-notifier
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 # Copyright (c) 2022 Luciano Santos <luc1...@opensuse.org>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:           transactional-update-notifier
-Version:        1.1.0
+Version:        1.1.0.2
 Release:        0
 Summary:        A notifier for systems using transactional updates
 License:        GPL-3.0-only
@@ -28,8 +28,8 @@
 Source1:        vendor.tar.xz
 Source9:        %{name}.rpmlintrc
 
-BuildRequires:  golang(API) >= 1.18
 BuildRequires:  systemd-rpm-macros
+BuildRequires:  golang(API) >= 1.18
 
 Requires:       dbus-1
 
@@ -38,7 +38,6 @@
 all users currently logged in in a graphical session. Being even possible
 for it to be used as a reboot method through transactional-updates.conf(5).
 
-
 %prep
 %autosetup -p 1 -a 1
 
@@ -58,7 +57,6 @@
 %preun
 %systemd_user_preun   %{name}.service
 
-
 %files
 %license LICENSE
 %doc README.md

++++++ _service ++++++
--- /var/tmp/diff_new_pack.BJFlTP/_old  2023-02-14 16:42:41.049467652 +0100
+++ /var/tmp/diff_new_pack.BJFlTP/_new  2023-02-14 16:42:41.053467676 +0100
@@ -5,7 +5,7 @@
     <param name="exclude">.git</param>
     <param name="filename">transactional-update-notifier</param>
     <param name="revision">main</param>
-    <param name="version">1.1.0</param>
+    <param name="version">1.1.0.2</param>
   </service>
   <service name="tar" mode="buildtime"/>
   <service name="recompress" mode="buildtime">

++++++ transactional-update-notifier-1.1.0.obscpio -> 
transactional-update-notifier-1.1.0.2.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-notifier-1.1.0/README.md 
new/transactional-update-notifier-1.1.0.2/README.md
--- old/transactional-update-notifier-1.1.0/README.md   2022-11-29 
19:48:56.000000000 +0100
+++ new/transactional-update-notifier-1.1.0.2/README.md 2023-02-11 
14:32:06.000000000 +0100
@@ -19,14 +19,19 @@
 
 **Transactional Update Notifier** should be run as a user's Systemd unit. 
 
-``` bash
-transactional-update-notifier daemon
+This will wait for messages over dbus at `org.opensuse.tukit.Updated` and 
trigger the graphical
+notification when receiving the signal.
+
+Graphical notifications are performed using user's dbus session.
+
+``` console
+~$: transactional-update-notifier daemon
 ```
 
 Or using `systemctl`:
 
-``` bash
-systemctl --user enable --now transactional-update-notifier
+``` console
+~$: systemctl --user enable --now transactional-update-notifier
 ```
 
 **Note:** After installing **Transactional Update Notifier** using `make`, the
@@ -34,14 +39,19 @@
 service by default on next boot and all you needed to do is to start it with:
 
 ``` bash
-systemctl --user start transactional-update-notifier
+~$: systemctl --user start transactional-update-notifier
 ```
 
 ### Client
 
 **Transactional Update Notifier** can be run from anywhere and executed by 
anyone,
-it will find the notifier socket and notify the user.
+it will send messages over dbus on `org.opensuse.tukit.Updated` and all 
listening services
+will trigger a graphical notification.
 
-``` bash
-transactional-update-notifier client
+``` console
+~#: transactional-update-notifier client
 ```
+
+Be aware that the file `org.opensuse.tukit.Updated.conf` should be put into 
`/etc/dbus-1/system.d/` in
+order to protect the `org.opensuse.tukit.Updated` name and allow only `root` 
to emit signals on this
+interface.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-notifier-1.1.0/client.go 
new/transactional-update-notifier-1.1.0.2/client.go
--- old/transactional-update-notifier-1.1.0/client.go   2022-11-29 
19:48:56.000000000 +0100
+++ new/transactional-update-notifier-1.1.0.2/client.go 2023-02-11 
14:32:06.000000000 +0100
@@ -5,9 +5,8 @@
        "github.com/godbus/dbus/v5"
 )
 
-// NotifyDaemonClient will search througt all files in /run/user, to find all
-// running transactionalupdatenotification socket files, then send a message
-// to each one of them in order to trigger the notification for all.
+// NotifyDaemonClient will emit a message on org.opensuse.tukit.Updated
+// so each one of the user-facing service will trigger the graphical 
notification.
 func NotifyDaemonClient(success string) {
        conn, err := dbus.SystemBus()
        if err != nil {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/transactional-update-notifier-1.1.0/daemon.go 
new/transactional-update-notifier-1.1.0.2/daemon.go
--- old/transactional-update-notifier-1.1.0/daemon.go   2022-11-29 
19:48:56.000000000 +0100
+++ new/transactional-update-notifier-1.1.0.2/daemon.go 2023-02-11 
14:32:06.000000000 +0100
@@ -40,7 +40,7 @@
        // an urgent notification, so we're sure that it will stick
        // in the tray, and the user is notified.
        hints := map[string]dbus.Variant{
-               "urgency":  dbus.MakeVariant(byte(2)),
+               "urgency":  dbus.MakeVariant(byte(1)),
                "category": dbus.MakeVariant("device"),
        }
 
@@ -62,6 +62,8 @@
        }
 }
 
+// NotifyDaemon will wait for a message on org.opensuse.tukit.Updated and 
trigger
+// a graphical notification accordingly.
 func NotifyDaemon() {
        conn, err := dbus.SystemBus()
        if err != nil {

++++++ transactional-update-notifier.obsinfo ++++++
--- /var/tmp/diff_new_pack.BJFlTP/_old  2023-02-14 16:42:41.165468341 +0100
+++ /var/tmp/diff_new_pack.BJFlTP/_new  2023-02-14 16:42:41.169468364 +0100
@@ -1,5 +1,5 @@
 name: transactional-update-notifier
-version: 1.1.0
-mtime: 1669747736
-commit: fc22628a7d4214690939b2adcbe3b56ff0f0662e
+version: 1.1.0.2
+mtime: 1676122326
+commit: d6467393ae55e6844e9509873bc7ac4d60bc5112
 

++++++ vendor.tar.xz ++++++

Reply via email to