Merge pull request #137056 from Artturin/ulaunchershebang

ulauncher: patchShebangs and do not double wrap
This commit is contained in:
Artturi 2021-09-09 03:24:06 +03:00 committed by GitHub
commit 96791c9131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,6 +77,9 @@ python3Packages.buildPythonApplication rec {
postPatch = ''
substituteInPlace setup.py --subst-var out
patchShebangs bin/ulauncher-toggle
substituteInPlace bin/ulauncher-toggle \
--replace wmctrl ${wmctrl}/bin/wmctrl
'';
# https://github.com/Ulauncher/Ulauncher/issues/390
@ -99,8 +102,10 @@ python3Packages.buildPythonApplication rec {
runHook postCheck
'';
# do not double wrap
dontWrapGApps = true;
preFixup = ''
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ wmctrl ]}")
makeWrapperArgs+=("''${gappsWrapperArgs[@]}" --prefix PATH : "${lib.makeBinPath [ wmctrl ]}")
'';
passthru = {