gomuks: 0.2.3 -> 0.2.4
This commit is contained in:
parent
d5867acf94
commit
65be4ada23
2 changed files with 18 additions and 16 deletions
|
@ -13,16 +13,16 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "gomuks";
|
pname = "gomuks";
|
||||||
version = "0.2.3";
|
version = "0.2.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tulir";
|
owner = "tulir";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0g0aa6h6bm00mdgkb38wm66rcrhqfvs2xj9rl04bwprsa05q5lca";
|
sha256 = "bTOfnEmJHTuniewH//SugNNDuKIFMQb1Safs0UVKH1c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "14ya5advpv4q5il235h5dxy8c2ap2yzrvqs0sjqgw0v1vm6vpwdx";
|
vendorSha256 = "PuNROoxL7UmcuYDgfnsMUsGk9i1jnQyWtaUmT7vXdKE=";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
diff --git a/lib/notification/notify_linux.go b/lib/notification/notify_linux.go
|
diff --git a/lib/notification/notify_xdg.go b/lib/notification/notify_xdg.go
|
||||||
index f93a95f..da6a61d 100644
|
index 7f102b8..996c15f 100644
|
||||||
--- a/lib/notification/notify_linux.go
|
--- a/lib/notification/notify_xdg.go
|
||||||
+++ b/lib/notification/notify_linux.go
|
+++ b/lib/notification/notify_xdg.go
|
||||||
@@ -32,7 +32,7 @@ func Send(title, text string, critical, sound bool) error {
|
@@ -26,8 +26,8 @@ import (
|
||||||
if critical {
|
var notifySendPath string
|
||||||
soundName = "complete"
|
var audioCommand string
|
||||||
}
|
var tryAudioCommands = []string{"ogg123", "paplay"}
|
||||||
- exec.Command("paplay", "/usr/share/sounds/freedesktop/stereo/"+soundName+".oga").Run()
|
-var soundNormal = "/usr/share/sounds/freedesktop/stereo/message-new-instant.oga"
|
||||||
+ exec.Command("paplay", "@soundTheme@/share/sounds/freedesktop/stereo/"+soundName+".oga").Run()
|
-var soundCritical = "/usr/share/sounds/freedesktop/stereo/complete.oga"
|
||||||
}
|
+var soundNormal = "@soundTheme@/share/sounds/freedesktop/stereo/message-new-instant.oga"
|
||||||
return exec.Command("notify-send", args...).Run()
|
+var soundCritical = "@soundTheme@/share/sounds/freedesktop/stereo/complete.oga"
|
||||||
}
|
|
||||||
|
func getSoundPath(env, defaultPath string) string {
|
||||||
|
if path, ok := os.LookupEnv(env); ok {
|
||||||
|
|
Loading…
Reference in a new issue