diff --git a/src/lib/components/Settings.svelte b/src/lib/components/Settings.svelte
index 598be0b..bb91e95 100644
--- a/src/lib/components/Settings.svelte
+++ b/src/lib/components/Settings.svelte
@@ -1,5 +1,103 @@
Settings
@@ -8,13 +106,28 @@
Platform: {settings.defaultPlatform}
Architecture: {settings.defaultArch}
Keep Archives: {settings.keepDownloadedArchives}
- Library: {settings.libraryDir}/Smoothie Library
+ Library: {settings.libraryDir}/{BASE_LIBRARY_DIR}
+
+
+
+ {#if error}
+ Error: {error}
+ {/if}
diff --git a/src/lib/library.js b/src/lib/library.js
index 61d59e7..fd86a01 100644
--- a/src/lib/library.js
+++ b/src/lib/library.js
@@ -116,6 +116,21 @@ export async function removeDesktopFile(version) {
}
}
+/**
+ * Remove all .desktop files for the given versions (Linux only).
+ * @param {blenderVersion[]} versions
+ */
+export async function removeAllDesktopFilesForVersions(versions) {
+ const currentPlatform = await platform();
+ if (currentPlatform !== 'linux') {
+ return;
+ }
+
+ for (const version of versions) {
+ await removeDesktopFile(version);
+ }
+}
+
/**
* Create a .desktop file for a Blender version (Linux only).
* @param {blenderVersion} version
@@ -250,8 +265,6 @@ export async function getInstalledVersions() {
// Filter out non-directory entries
for (const entry of entries) {
if (!entry.isDirectory) {
- const filePath = await join(blenderLibraryPath, entry.name);
- //await remove(filePath);
continue;
}