mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master' into next57
This commit is contained in:
		
						commit
						7e83d3a54d
					
				@ -28,11 +28,17 @@ function installLocalAppIcon() {
 | 
				
			|||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (!fs.existsSync(path.resolve(ELECTRON_APP_ROOT_DIR, "trilium-portable.sh"))) {
 | 
				
			||||||
 | 
					        // simple heuristic to detect ".tar.xz" linux build (i.e. not flatpak, not debian)
 | 
				
			||||||
 | 
					        // only in such case it's necessary to create an icon
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const desktopDir = path.resolve(os.homedir(), '.local/share/applications');
 | 
					    const desktopDir = path.resolve(os.homedir(), '.local/share/applications');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    fs.stat(desktopDir, function (err, stats) {
 | 
					    fs.stat(desktopDir, function (err, stats) {
 | 
				
			||||||
        if (err) {
 | 
					        if (err) {
 | 
				
			||||||
            // Directory doesn't exist so we won't attempt to create the .desktop file
 | 
					            // Directory doesn't exist, so we won't attempt to create the .desktop file
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user