xdg-desktop-portal: fix to not over-escape $HOME in s6 service definition

This commit is contained in:
Colin 2024-03-21 04:06:29 +00:00
parent 452619dbfc
commit 384bc9e816

View File

@ -64,7 +64,7 @@ in
# i can actually almost omit it today; problem is that if you don't set it it'll look for `sway-portals.conf` in ~/.config/xdg-desktop-portal
# but then will check its *own* output dir for {gtk,wlr}.portal.
# arguable if that's a packaging bug, or limitation...
ExecStart = lib.escapeShellArgs [
ExecStart = lib.concatStringsSep " " [
"env"
"XDG_DESKTOP_PORTAL_DIR=$HOME/.config/xdg-desktop-portal"
# "G_MESSAGES_DEBUG=all" #< also applies to all apps launched by the portal
@ -86,7 +86,7 @@ in
wantedBy = [ "xdg-desktop-portal.service" ];
serviceConfig = {
ExecStart = lib.escapeShellArgs [
ExecStart = lib.concatStringsSep " " [
"env"
"XDG_DESKTOP_PORTAL_DIR=$HOME/.config/xdg-desktop-portal"
"${cfg.package}/libexec/xdg-permission-store"