fix(app): correct shortcuts, nagbar, stream menu, share audio (#2599)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-08 19:09:59 +02:00
1 parent 55846b24ea
commit fc2b6b5299
37 files changed
+1074 -268

No files matched your search

+1 -14
View File
@@ -146,20 +146,7 @@ async function repairWindowsShortcutsAsync(repairPaths: WindowsShortcutRepairPat
return;
}
const {createShortcut} = binding;
try {
if (fs.existsSync(repairPaths.rootShortcut)) {
const authorDir = path.dirname(repairPaths.authorShortcut);
fs.mkdirSync(authorDir, {recursive: true});
if (fs.existsSync(repairPaths.authorShortcut)) {
fs.rmSync(repairPaths.rootShortcut, {force: true});
} else {
fs.renameSync(repairPaths.rootShortcut, repairPaths.authorShortcut);
}
}
} catch (error) {
console.warn('[WindowsShortcuts] Failed to migrate root Start-Menu shortcut', error);
}
const shortcutPaths: Array<string> = [repairPaths.authorShortcut];
const shortcutPaths: Array<string> = [repairPaths.authorShortcut, repairPaths.rootShortcut];
const desktopDir = process.env.USERPROFILE ? path.join(process.env.USERPROFILE, 'Desktop') : '';
if (desktopDir) shortcutPaths.push(path.join(desktopDir, `${DESKTOP_APP_NAME}.lnk`));
if (process.env.APPDATA) {