Commit 0e3da457b5

0e3da457b59c721bd8c3194cf403ddf06dbdf63b

parent: c0ef501ff2

Unsigned

SsubezZ <subez.poudel1@gmail.com> · 2025-01-18 14:39 UTC

notification: added appname, title and made it such that it replaces the older ones

Layout: unified · split

internal/curd.go +11 −2
@@ -166,7 +166,12 @@ func CurdOut(data interface{}) {
166166 if len(parts) == 3 {
167167 // Remove quotes from the message
168168 message := strings.Trim(parts[2], "\"")
169 cmd := exec.Command("notify-send", "-i", parts[1], message)
169 cmd := exec.Command("notify-send",
170 "-a", "Curd",
171 "-h", "string:x-canonical-private-synchronous:curd-notification",
172 "Curd",
173 "-i", parts[1],
174 message)
170175 err := cmd.Run()
171176 if err != nil {
172177 Log(fmt.Sprintf("%v", cmd), logFile)
@@ -174,7 +179,11 @@ func CurdOut(data interface{}) {
174179 }
175180 }
176181 } else {
177 cmd := exec.Command("notify-send", dataStr)
182 cmd := exec.Command("notify-send",
183 "-a", "Curd",
184 "-h", "string:x-canonical-private-synchronous:curd-notification",
185 "Curd",
186 dataStr)
178187 err := cmd.Run()
179188 if err != nil {
180189 Log(fmt.Sprintf("%v", cmd), logFile)