mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
fix: user apps open at the Desktop's resolution (#1172)
A user app (script, AppImage or Flatpak) started from its shortcut runs in a Run session, which took the Steam resolution (720p by default). It ignored the resolution chosen under Open Desktop and was letterboxed at 1280x720 on screens that are not 16:9. User apps now use the Desktop's resolution once one has been chosen. Until then, and for every other Run program, nothing changes.
This commit is contained in:
1 parent
80a62cd0f0
commit
af4f0a7edb
4 files changed
+27
-3
No files matched your search
@@ -71,6 +71,9 @@ object UserApps {
|
||||
private fun menuEntry(context: Context, id: String) =
|
||||
File(LinuxRuntime.rootDir(context), "usr/local/share/applications/droiddeck-app-$id.desktop")
|
||||
|
||||
fun launches(program: String?): Boolean =
|
||||
program == SCRIPT_LAUNCHER || program == AppImageManager.LAUNCHER || program == FlatpakManager.LAUNCHER
|
||||
|
||||
fun list(context: Context): List<App> {
|
||||
val scripts = root(context).listFiles()?.filter { File(it, "entry").isFile }?.map { dir ->
|
||||
App(
|
||||
|
||||
Reference in new issue
Block a user