about summary refs log tree commit diff
path: root/pkgs/tools/video/replay-sorcery/hardcode-libnotify.patch
blob: 8ff42bec92fa78012c68af1c4b3e04f005acd3a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/src/config.c b/src/config.c
index 3af7455..12cb6b5 100644
--- a/src/config.c
+++ b/src/config.c
@@ -129,7 +129,7 @@ static const AVOption configOptions[] = {
     CONFIG_CONST(alt, RS_CONFIG_KEYMOD_ALT, keyMods),
     CONFIG_CONST(super, RS_CONFIG_KEYMOD_SUPER, keyMods),
     CONFIG_STRING(outputFile, "~/Videos/ReplaySorcery_%F_%H-%M-%S.mp4"),
-    CONFIG_STRING(outputCommand, "notify-send " RS_NAME " \"Saved replay as %s\""),
+    CONFIG_STRING(outputCommand, "@libnotify@/bin/notify-send " RS_NAME " \"Saved replay as %s\""),
     {NULL}};
 
 static const AVClass configClass = {
diff --git a/sys/replay-sorcery.conf b/sys/replay-sorcery.conf
index 5cd0aa6..c600e7f 100644
--- a/sys/replay-sorcery.conf
+++ b/sys/replay-sorcery.conf
@@ -123,5 +123,5 @@ outputFile = ~/Videos/ReplaySorcery_%F_%H-%M-%S.mp4
 
 # A command to run when a video is successfully saved
 # Possible values: a printf formatted command
-# Default value: notify-send ReplaySorcery "Saved replay as %s"
-outputCommand = notify-send ReplaySorcery "Saved replay as %s"
+# Default value: @libnotify@/bin/notify-send ReplaySorcery "Saved replay as %s"
+outputCommand = @libnotify@/bin/notify-send ReplaySorcery "Saved replay as %s"