aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/index.html23
-rw-r--r--src/app/main.js1
-rw-r--r--src/app/settings.js7
3 files changed, 31 insertions, 0 deletions
diff --git a/src/app/index.html b/src/app/index.html
index 4b3b79f..794e209 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -48,6 +48,29 @@
<input>
</div>
</div>
+ <h2 class="linuxopt">%%gui.settings.title.linux%%</h2>
+ <div class="option linuxopt" name="wineprefix">
+ <div class="text">
+ %%gui.settings.wineprefix.title%%
+ <div class="desc">
+ %%gui.settings.wineprefix.desc%%
+ </div>
+ </div>
+ <div class="actions">
+ <input>
+ </div>
+ </div>
+ <div class="option linuxopt" name="winebin">
+ <div class="text">
+ %%gui.settings.winebin.title%%
+ <div class="desc">
+ %%gui.settings.winebin.desc%%
+ </div>
+ </div>
+ <div class="actions">
+ <input>
+ </div>
+ </div>
<h2>%%gui.settings.title.language%%</h2>
<div class="option" name="autolang">
<div class="text">
diff --git a/src/app/main.js b/src/app/main.js
index 70d1b0c..6ec5820 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -16,6 +16,7 @@ var settings = {
autoupdate: true,
zip: "/northstar.zip",
lang: navigator.language,
+ winebin: "/usr/bin/wine64",
excludes: [
"ns_startup_args.txt",
"ns_startup_args_dedi.txt"
diff --git a/src/app/settings.js b/src/app/settings.js
index 23b38c9..96d9379 100644
--- a/src/app/settings.js
+++ b/src/app/settings.js
@@ -126,6 +126,13 @@ var Settings = {
}
}
+ if (process.platform == "win32") {
+ let linuxopts = document.querySelectorAll(".options .linuxopt");
+ for (let i = 0; i < linuxopts.length; i++) {
+ linuxopts[i].style.display = "none";
+ }
+ }
+
ipcRenderer.send("can-autoupdate");
ipcRenderer.on("cant-autoupdate", () => {
document.querySelector(".option[name=autoupdate]").style.display = "none";