mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-11-01 01:21:18 +01:00 
			
		
		
		
	headless
This commit is contained in:
		
							parent
							
								
									97d28ac6d2
								
							
						
					
					
						commit
						eb20f51958
					
				@ -75,10 +75,14 @@ public class SPdfApplication {
 | 
			
		||||
 | 
			
		||||
    public static void main(String[] args) throws IOException, InterruptedException {
 | 
			
		||||
 | 
			
		||||
        System.setProperty("java.awt.headless", "false");
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
        SpringApplication app = new SpringApplication(SPdfApplication.class);
 | 
			
		||||
        app.setHeadless(false);
 | 
			
		||||
        
 | 
			
		||||
        if("true".equals(System.getenv("STIRLING_PDF_DESKTOP_UI"))) {
 | 
			
		||||
	        System.setProperty("java.awt.headless", "false");
 | 
			
		||||
	        app.setHeadless(false);
 | 
			
		||||
        }
 | 
			
		||||
        app.setAdditionalProfiles("default");
 | 
			
		||||
        app.addInitializers(new ConfigInitializer());
 | 
			
		||||
        Map<String, String> propertyFiles = new HashMap<>();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user