|  |  | @ -45,7 +45,7 @@ app.post('/createShortcut', (req, res) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |     Type=Application |  |  |  |     Type=Application | 
			
		
	
		
		
			
				
					
					|  |  |  |     Name=${shortcutName} |  |  |  |     Name=${shortcutName} | 
			
		
	
		
		
			
				
					
					|  |  |  |     Exec=/usr/bin/chromium-browser ${shortcutURL} |  |  |  |     Exec=/usr/bin/chromium-browser ${shortcutURL} | 
			
		
	
		
		
			
				
					
					|  |  |  |     Icon=Icon=/usr/share/icons/hicolor/48x48/apps/chromium-browser.png`; |  |  |  |     Icon=/usr/share/icons/hicolor/48x48/apps/chromium-browser.png`; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   fs.writeFile(shortcutFolderPath, shortcutFileContent, (err) => { |  |  |  |   fs.writeFile(shortcutFolderPath, shortcutFileContent, (err) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (err) { |  |  |  |     if (err) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -56,7 +56,8 @@ app.post('/createShortcut', (req, res) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |   }); |  |  |  |   }); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   fs.chmodSync(shortcutFolderPath, 0o755); |  |  |  |   // 设置文件权限为可执行
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   fs.chmodSync(shortcutFolderPath, 0o755); // 0o755 表示 rwxr-xr-x 权限,即所有者可读写执行,其他用户可读执行
 | 
			
		
	
		
		
			
				
					
					|  |  |  | }); |  |  |  | }); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | // 运行项目 需要进入到当前的文件夹目录打开终端 执行 node nodeService.js 
 |  |  |  | // 运行项目 需要进入到当前的文件夹目录打开终端 执行 node nodeService.js 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |