about summary refs log tree commit diff
path: root/nixos/tests/pantheon.nix
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2024-01-14 17:47:44 +0800
committerBobby Rong <rjl931189261@126.com>2024-03-17 13:42:33 +0800
commite49a58b847a4eae91203cbaad128dc82c39f46e1 (patch)
tree5e4bc34edd27a76dcc8957cf06d6194ab3643e4b /nixos/tests/pantheon.nix
parent0b41a85c95d15a72b9be9aca9d68d5dde46a1740 (diff)
nixosTests.pantheon: Fix gala environ subtest
This is changed after we manage session with systemd, as
io.elementary.gala@.service has `ExecStart=@bindir@/gala`.
Diffstat (limited to 'nixos/tests/pantheon.nix')
-rw-r--r--nixos/tests/pantheon.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/pantheon.nix b/nixos/tests/pantheon.nix
index 69a28c397bedc..c75aa9aa0be3b 100644
--- a/nixos/tests/pantheon.nix
+++ b/nixos/tests/pantheon.nix
@@ -54,7 +54,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} :
         machine.wait_for_unit("io.elementary.files.xdg-desktop-portal.service", "${user.name}")
 
     with subtest("Check if various environment variables are set"):
-        cmd = "xargs --null --max-args=1 echo < /proc/$(pgrep -xf /run/current-system/sw/bin/gala)/environ"
+        cmd = "xargs --null --max-args=1 echo < /proc/$(pgrep -xf ${pkgs.pantheon.gala}/bin/gala)/environ"
         machine.succeed(f"{cmd} | grep 'XDG_CURRENT_DESKTOP' | grep 'Pantheon'")
         # Hopefully from the sessionPath option.
         machine.succeed(f"{cmd} | grep 'XDG_DATA_DIRS' | grep 'gsettings-schemas/pantheon-agent-geoclue2'")