Enhance installation process with terminal selection, update autostart commands, and add PolyForm license; remove unused AGS config

This commit is contained in:
2026-07-06 07:02:34 +02:00
parent 3ee00f2de3
commit ed0a09bfcc
14 changed files with 274 additions and 30 deletions
+8
View File
@@ -29,6 +29,7 @@ process.env.HOME = fakeHome;
after(() => rmSync(fakeHome, { recursive: true, force: true }));
const {
autostartCmdsFor,
backupConflicts,
restoreLatestBackup,
restow,
@@ -42,6 +43,13 @@ const dirs = ["hyprland", "waybar", "kitty", "hyprpaper"];
const hyprlandTarget = join(fakeHome, ".config", "hypr", "hyprland.lua");
const wallpaperTarget = join(fakeHome, ".config", "hypr", "wallpapers", "wallpaper.png");
test("autostartCmdsFor picks known autostart packages and appends hyprlauncher -d", { skip }, () => {
assert.deepStrictEqual(
autostartCmdsFor(["hyprland", "mako", "hyprlauncher"]),
["mako", "hyprlauncher -d"],
);
});
test("seeds a pre-existing conflicting file", { skip }, () => {
mkdirSync(join(fakeHome, ".config", "hypr"), { recursive: true });
writeFileSync(hyprlandTarget, "old config\n");