make-sandboxed: handl polkit files when patching bin paths
This commit is contained in:
@@ -328,19 +328,24 @@ let
|
|||||||
removeUnwanted "$outdir" ""
|
removeUnwanted "$outdir" ""
|
||||||
|
|
||||||
# fixup a few files i understand well enough
|
# fixup a few files i understand well enough
|
||||||
for d in \
|
for binLoc in bin libexec sbin; do
|
||||||
$outdir/etc/xdg/autostart/*.desktop \
|
for d in \
|
||||||
$outdir/share/applications/*.desktop \
|
$outdir/etc/xdg/autostart/*.desktop \
|
||||||
$outdir/share/dbus-1/{services,system-services}/*.service \
|
$outdir/share/applications/*.desktop \
|
||||||
$outdir/{etc,lib,share}/systemd/{system,user}/*.service \
|
$outdir/share/dbus-1/{services,system-services}/*.service \
|
||||||
; do
|
; do
|
||||||
# Exec: dbus and desktop files
|
trySubstitute "$d" "Exec=%s/$binLoc/"
|
||||||
# ExecStart,ExecReload: systemd service files
|
done
|
||||||
for key in Exec ExecStart ExecReload; do
|
|
||||||
for binLoc in bin libexec sbin; do
|
for d in $outdir/{etc,lib,share}/systemd/{system,user}/*.service; do
|
||||||
|
for key in ExecStart ExecReload; do
|
||||||
trySubstitute "$d" "$key=%s/$binLoc/"
|
trySubstitute "$d" "$key=%s/$binLoc/"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for d in $outdir/share/polkit-1/actions/*.policy; do
|
||||||
|
trySubstitute "$d" '<annotate key="org.freedesktop.policykit.exec.path">'"%s/$binLoc/"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
Reference in New Issue
Block a user