Compare commits

..

No commits in common. "master" and "app-v0.1.2" have entirely different histories.

View File

@ -185,25 +185,12 @@ export async function createDesktopFile(version, forceRecreate = false) {
await remove(desktopFilePath); await remove(desktopFilePath);
} }
const settings = get(currentSettings);
const libraryDir = settings.libraryDir;
if (!libraryDir) {
return {
success: false,
message: `couldn't find library`
};
}
const blenderConfigPath = await join(libraryDir, BASE_LIBRARY_DIR, 'config', version.version);
let bannerPath = await join(version.path, 'banner.png');
try { try {
const desktopFileContent = `[Desktop Entry] const desktopFileContent = `[Desktop Entry]
Type=Application Type=Application
Name=Blender ${version.version} Name=Blender ${version.version}
Comment=Blender ${version.version} - 3D creation suite Comment=Blender ${version.version} - 3D creation suite
Exec=env BLENDER_USER_RESOURCES=${blenderConfigPath.replace(/ /g, '\\ ')} BLENDER_CUSTOM_SPLASH_BANNER=${bannerPath.replace(/ /g, '\\ ')} ${version.executable.replace(/ /g, '\\ ')} %F Exec=${version.executable.replace(/ /g, '\\ ')} %F
Icon=${version.path.replace(/ /g, '\\ ')}/icon.png Icon=${version.path.replace(/ /g, '\\ ')}/icon.png
Terminal=false Terminal=false
Categories=Graphics;3DGraphics; Categories=Graphics;3DGraphics;