pax_global_header 0000666 0000000 0000000 00000000064 14631331503 0014511 g ustar 00root root 0000000 0000000 52 comment=22b3f2d84ae32850a2e642dc7966443e4c8eeb4f notify-0.13.3/ 0000775 0000000 0000000 00000000000 14631331503 0013105 5 ustar 00root root 0000000 0000000 notify-0.13.3/.github/ 0000775 0000000 0000000 00000000000 14631331503 0014445 5 ustar 00root root 0000000 0000000 notify-0.13.3/.github/workflows/ 0000775 0000000 0000000 00000000000 14631331503 0016502 5 ustar 00root root 0000000 0000000 notify-0.13.3/.github/workflows/go.yml 0000664 0000000 0000000 00000001134 14631331503 0017631 0 ustar 00root root 0000000 0000000 name: Go on: [push] jobs: build: name: Build runs-on: ubuntu-latest strategy: matrix: go-version: - '1.13' - '1.18' - '1.19' - '1.20' - '1.21' - '1.22' steps: - name: Set up Go ${{ matrix.go-version }} uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - uses: actions/checkout@v4 - name: Get dependencies run: go get -v -t -d ./... - name: Build run: go build -v . - name: Build Example run: | cd example go build -v . notify-0.13.3/.gitignore 0000664 0000000 0000000 00000000006 14631331503 0015071 0 ustar 00root root 0000000 0000000 .idea notify-0.13.3/LICENSE.txt 0000664 0000000 0000000 00000002735 14631331503 0014737 0 ustar 00root root 0000000 0000000 Copyright (c) 2021, Eivind Siqveland Larsen All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. notify-0.13.3/README.md 0000664 0000000 0000000 00000003751 14631331503 0014372 0 ustar 00root root 0000000 0000000 # notify [](https://pkg.go.dev/github.com/esiqveland/notify?tab=doc) [](https://goreportcard.com/report/github.com/esiqveland/notify)  Notify is a go library for interacting with the dbus notification service defined by freedesktop.org: https://developer.gnome.org/notification-spec/ `notify` can deliver desktop notifications over dbus, ala how libnotify does it. Please note `notify` is still in motion and APIs are not locked until a 1.0 is released. More testers are very welcome =) Depends on: - [godbus](https://github.com/godbus/dbus). ## Changelog - v0.11.2: Introduce helpers ExpireTimeoutSetByNotificationServer, ExpireTimeoutNever - v0.11.1: Fix a race during Close() #11 - v0.11.0: re-release under BSD license - v0.10.0: stricter types: [some breaking changes](https://github.com/esiqveland/notify/releases/tag/v0.10.0) - v0.9.0: [some breaking changes](https://github.com/esiqveland/notify/releases/tag/v0.9.0) - v0.2.1: dbus: gomod: lock to dbus v5 - v0.2.0: `Notifier.Close()` no longer calls `.Close()` on the underlying `dbus.Conn` ## Quick intro See example: [main.go](https://github.com/esiqveland/notify/blob/master/example/main.go). Clone repo and go to examples folder: ``` go run main.go ``` ## TODO - [x] Add callback support aka dbus signals. - [ ] Tests. I am very interested in any ideas for writing some (useful) tests for this. ## See also The Gnome notification spec https://developer.gnome.org/notification-spec/. ## Contributors Thanks to user [emersion](https://github.com/emersion) for great ideas on receiving signals. Thanks to [Merovius](https://github.com/Merovius) for fixing race during Close(). ## License BSD 3-Clause notify-0.13.3/doc.go 0000664 0000000 0000000 00000001672 14631331503 0014207 0 ustar 00root root 0000000 0000000 /* Package notify is a wrapper around godbus for dbus notification interface See: https://developer.gnome.org/notification-spec/ and https://github.com/godbus/dbus The package provides exported methods for simple usage, e.g. just show a notification. It also provides the interface Notifier that includes signal delivery for notifications on the system. Each notification created is allocated a unique ID by the server (see Notification). This ID is unique within the dbus session, and is an increasing number. While the notification server is running, the ID will not be recycled unless the capacity of a uint32 is exceeded. The ID can be used to hide the notification before the expiration timeout is reached (see CloseNotification). The ID can also be used to atomically replace the notification with another (Notification.ReplaceID). This allows you to (for instance) modify the contents of a notification while it's on-screen. */ package notify notify-0.13.3/example/ 0000775 0000000 0000000 00000000000 14631331503 0014540 5 ustar 00root root 0000000 0000000 notify-0.13.3/example/big.jpg 0000664 0000000 0000000 00002030575 14631331503 0016017 0 ustar 00root root 0000000 0000000 JFIF " 8 gi{zca#e~G?^*)gUʼ u fXYȌd~8-S45%U ALał?(5~͡Τ%냈vd$cl9y;2a)