cockpit/fix-libexecdir.patch

13 lines
708 B
Diff

diff -up cockpit-320/src/cockpit/packages.py.org cockpit-320/src/cockpit/packages.py
--- cockpit-320/src/cockpit/packages.py.org 2024-07-14 21:06:50.378400822 +0200
+++ cockpit-320/src/cockpit/packages.py 2024-07-14 21:07:40.568245119 +0200
@@ -127,7 +127,7 @@ def get_libexecdir() -> str:
This only works for systems which have cockpit-ws installed.
"""
- for candidate in ['/usr/local/libexec', '/usr/libexec', '/usr/local/lib/cockpit', '/usr/lib/cockpit']:
+ for candidate in ['/usr/local/libexec', '/usr/libexec', '/usr/local/lib/cockpit', '/usr/lib/cockpit', '/usr/lib']:
if os.path.exists(os.path.join(candidate, 'cockpit-askpass')):
return candidate
else: