1 import ./make-test-python.nix ({ lib, ... }: {
2 name = "xmonad-xdg-autostart";
3 meta.maintainers = with lib.maintainers; [ oxalica ];
5 nodes.machine = { pkgs, config, ... }: {
6 imports = [ ./common/x11.nix ./common/user-account.nix ];
7 test-support.displayManager.auto.user = "alice";
8 services.displayManager.defaultSession = "none+xmonad";
9 services.xserver.windowManager.xmonad.enable = true;
10 services.xserver.desktopManager.runXdgAutostartIfNone = true;
12 environment.systemPackages = [
14 name = "test-xdg-autostart";
15 destination = "/etc/xdg/autostart/test-xdg-autostart.desktop";
18 Name=test-xdg-autoatart
21 Exec=${pkgs.coreutils}/bin/touch ${config.users.users.alice.home}/xdg-autostart-executed
27 testScript = { nodes, ... }:
29 user = nodes.machine.config.users.users.alice;
33 machine.wait_for_file("${user.home}/xdg-autostart-executed")