testbed: wrap autostart command in a shell script (#1204)

Allows testbeds autostart to be more complex than a single command.

Link: https://github.com/danth/stylix/pull/1204

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
This commit is contained in:
Mateus Auler 2025-05-03 18:19:57 +00:00 committed by GitHub
parent 953e7247ac
commit fe3feecf23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,7 +138,9 @@ let
package = pkgs.makeDesktopItem {
name = "stylix-testbed";
desktopName = "stylix-testbed";
exec = config.stylix.testbed.ui.command.text;
exec = toString (
pkgs.writeShellScript "startup" config.stylix.testbed.ui.command.text
);
terminal = config.stylix.testbed.ui.command.useTerminal;
};
}