nixpkgs/pkgs/tools/video/replay-sorcery/hardcode-libnotify.patch

26 lines
1.2 KiB
Diff
Raw Normal View History

2021-05-14 23:29:40 +02:00
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"