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{}) {
166 if len(parts) == 3 { 166 if len(parts) == 3 {
167 // Remove quotes from the message 167 // Remove quotes from the message
168 message := strings.Trim(parts[2], "\"") 168 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)
170 err := cmd.Run() 175 err := cmd.Run()
171 if err != nil { 176 if err != nil {
172 Log(fmt.Sprintf("%v", cmd), logFile) 177 Log(fmt.Sprintf("%v", cmd), logFile)
@@ -174,7 +179,11 @@ func CurdOut(data interface{}) {
174 } 179 }
175 } 180 }
176 } else { 181 } 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)
178 err := cmd.Run() 187 err := cmd.Run()
179 if err != nil { 188 if err != nil {
180 Log(fmt.Sprintf("%v", cmd), logFile) 189 Log(fmt.Sprintf("%v", cmd), logFile)