mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 13:35:42 +09:00
fix(app): correct shortcuts, nagbar, stream menu, share audio (#2599)
This commit is contained in:
1 parent
55846b24ea
commit
fc2b6b5299
37 files changed
+1074
-268
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user