guru/x11-misc/betterlockscreen/files/00-fix-betterlockscreen-path-in-unit.patch
Vladimir Timofeenko 303ff4aee9
x11-misc/betterlockscreen: added patch to fix path in systemd unit
In the systemd unit upstream the betterlockscreen binary path is
hardcoded to /usr/local .

This commit adds a patch that corrects that path to the one where
betterlocksreen is installed by the ebuild.

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Vladimir Timofeenko <id@vtimofeenko.com>
2021-10-22 10:49:18 -07:00

16 lines
512 B
Diff

Original systemd service uses binary in /usr/local/bin which goes
against Gentoo FS policy
diff --git a/system/betterlockscreen@.service b/system/betterlockscreen@.service
index b9ad6fb..d0674ab 100644
--- a/system/betterlockscreen@.service
+++ b/system/betterlockscreen@.service
@@ -7,7 +7,7 @@ Before=suspend.target
User=%I
Type=simple
Environment=DISPLAY=:0
-ExecStart=/usr/local/bin/betterlockscreen --lock
+ExecStart=/usr/bin/betterlockscreen --lock
TimeoutSec=infinity
ExecStartPost=/usr/bin/sleep 1