Skip to content

Commit

Permalink
change pinned shell app depending on setup option
Browse files Browse the repository at this point in the history
  • Loading branch information
Endercass committed Mar 17, 2024
1 parent 7e828c4 commit fe8e7b9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
7 changes: 1 addition & 6 deletions config.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@
],
"defaultsettings": {
"use-sw-cache": true,
"applist": [
"anura.browser",
"anura.settings",
"anura.fsapp",
"anura.term"
],
"applist": ["anura.browser", "anura.settings", "anura.fsapp"],
"clampWindows": true,
"launcher-keybind": true,
"relay-url": "wss://relay.widgetry.org/"
Expand Down
20 changes: 20 additions & 0 deletions src/oobe/OobeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ class OobeView {
on:click={() => {
anura.settings.set("x86-disabled", false);
anura.settings.set("x86-image", "alpine");
anura.settings.set("applist", [
...anura.settings.get("applist"),
"anura.term",
]);
this.nextStep();
}}
>
Expand All @@ -133,6 +137,10 @@ class OobeView {
on:click={() => {
anura.settings.set("x86-disabled", false);
anura.settings.set("x86-image", "debian");
anura.settings.set("applist", [
...anura.settings.get("applist"),
"anura.term",
]);
this.nextStep();
}}
>
Expand All @@ -143,6 +151,10 @@ class OobeView {
on:click={() => {
anura.settings.set("x86-disabled", false);
anura.settings.set("x86-image", "arch");
anura.settings.set("applist", [
...anura.settings.get("applist"),
"anura.term",
]);
this.nextStep();
}}
>
Expand All @@ -152,6 +164,10 @@ class OobeView {
<button
on:click={() => {
anura.settings.set("x86-disabled", true);
anura.settings.set("applist", [
...anura.settings.get("applist"),
"anura.ashell",
]);
this.nextStep();
}}
>
Expand All @@ -162,6 +178,10 @@ class OobeView {
on:click={() => {
anura.settings.set("x86-disabled", true);
anura.settings.set("use-sw-cache", false);
anura.settings.set("applist", [
...anura.settings.get("applist"),
"anura.ashell",
]);
this.nextStep();
}}
>
Expand Down

0 comments on commit fe8e7b9

Please sign in to comment.