With the Property 'PrefersNonDefaultGPU', you can signal to dekstop environments like GNOME that you want to run the application using the more powerful secondary graphics card, if such a card is available. Specification: https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html With this change, you won't have to include a special prime-run script.
		
			
				
	
	
		
			13 lines
		
	
	
		
			341 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			341 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Desktop Entry]
 | 
						|
Version=1.0
 | 
						|
Name=PolyMC
 | 
						|
Comment=A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once.
 | 
						|
Type=Application
 | 
						|
Terminal=false
 | 
						|
Exec=@Launcher_APP_BINARY_NAME@
 | 
						|
StartupNotify=true
 | 
						|
Icon=org.polymc.PolyMC
 | 
						|
PrefersNonDefaultGPU=true
 | 
						|
Categories=Game;
 | 
						|
Keywords=game;minecraft;launcher;
 |