master
鲁誉程 9 months ago
parent 33c0cde696
commit 2fe560d2e7

@ -40,7 +40,7 @@ app.post('/createShortcut', (req, res) => {
// const shortcutFileContent = `[InternetShortcut]\nURL=${shortcutURL}`; // const shortcutFileContent = `[InternetShortcut]\nURL=${shortcutURL}`;
// linux下创建快捷方式 // linux下创建快捷方式
const shortcutFolderPath = path.join(folderPath, shortcutName + '.desktop'); const shortcutFolderPath = path.join(folderPath, shortcutName + 'test'+'.desktop');
const shortcutFileContent = `[Desktop Entry] const shortcutFileContent = `[Desktop Entry]
Type=Application Type=Application
Name=${shortcutName} Name=${shortcutName}

Loading…
Cancel
Save