From 131615811ba4c0d622c22e67b67298fabf81ac4c Mon Sep 17 00:00:00 2001 From: Eonfge <33983090+Eonfge@users.noreply.github.com> Date: Mon, 10 Jan 2022 14:55:18 +0100 Subject: [PATCH] Set PrefersNonDefaultGPU for hybrid devices 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. --- program_info/org.polymc.PolyMC.desktop.in | 1 + 1 file changed, 1 insertion(+) diff --git a/program_info/org.polymc.PolyMC.desktop.in b/program_info/org.polymc.PolyMC.desktop.in index f89f63d2..8bbdc505 100644 --- a/program_info/org.polymc.PolyMC.desktop.in +++ b/program_info/org.polymc.PolyMC.desktop.in @@ -7,5 +7,6 @@ Terminal=false Exec=@Launcher_APP_BINARY_NAME@ StartupNotify=true Icon=org.polymc.PolyMC +PrefersNonDefaultGPU=true Categories=Game; Keywords=game;minecraft;launcher;