mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
21 lines
757 B
Kotlin
21 lines
757 B
Kotlin
package com.droiddeck.launcher
|
|
|
|
import android.app.Application
|
|
import com.droiddeck.launcher.runtime.BwrapSpawner
|
|
import com.droiddeck.launcher.session.CrashHandler
|
|
|
|
/**
|
|
* Process-wide setup: the crash handler, so a session's folder is finished even when we die, and
|
|
* the socket Flatpak's sandboxes are started through (BwrapSpawner).
|
|
*/
|
|
class App : Application() {
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
CrashHandler.install(this)
|
|
// Before anything else touches the session prefs: a new install's first read decides it.
|
|
com.droiddeck.launcher.session.SessionPrefs.settleDeckModeDefault(this)
|
|
com.droiddeck.launcher.session.SessionPrefs.settleGpuDriverMode(this)
|
|
BwrapSpawner.start(this)
|
|
}
|
|
}
|