Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ed7afd672 |
No files matched your search
@@ -754,17 +754,12 @@ jobs:
|
||||
ln -sfn "$(cd "$jars" && pwd)" "$m2"
|
||||
echo "cache=true" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
- name: Restore Robolectric's Android jars
|
||||
id: robolectric-cache
|
||||
- name: Cache Robolectric's Android jars
|
||||
if: steps.robolectric-jars.outputs.cache == 'true'
|
||||
uses: actions/cache/restore@v4
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ../robolectric-jars
|
||||
key: robolectric-android-all-v3-${{ steps.robolectric.outputs.version }}-${{ github.run_id }}
|
||||
restore-keys: robolectric-android-all-v3-${{ steps.robolectric.outputs.version }}-
|
||||
- name: Count the restored Robolectric jars
|
||||
if: steps.robolectric-jars.outputs.cache == 'true'
|
||||
run: echo "ROBOLECTRIC_JARS_BEFORE=$(find "$GITHUB_WORKSPACE/../robolectric-jars" -name '*.jar' | wc -l)" >> "$GITHUB_ENV"
|
||||
key: robolectric-android-all-v2-${{ steps.robolectric.outputs.version }}
|
||||
- name: Unit tests
|
||||
id: unit-tests
|
||||
env:
|
||||
@@ -775,34 +770,6 @@ jobs:
|
||||
mkdir -p app/build
|
||||
./gradlew testReleaseUnitTest --console=plain --info --stacktrace -Drobolectric.logging=stderr -PndkVersion="$NDK_VERSION" 2>&1 | tee app/build/unit-tests.log
|
||||
|
||||
# actions/cache only saves when the job succeeds, so a run whose tests died on a Maven 429 never filled the cache.
|
||||
# Save the complete jars even after a failed test step, when this run added some; a partial download is dropped first.
|
||||
- name: Save Robolectric's Android jars
|
||||
id: robolectric-jars-final
|
||||
if: always() && steps.robolectric-jars.outputs.cache == 'true'
|
||||
run: |
|
||||
python3 - <<'PY'
|
||||
import glob, os, zipfile
|
||||
root = os.path.join(os.environ['GITHUB_WORKSPACE'], '..', 'robolectric-jars')
|
||||
for f in glob.glob(os.path.join(root, '**', '*'), recursive=True):
|
||||
if not os.path.isfile(f):
|
||||
continue
|
||||
try:
|
||||
ok = f.endswith('.jar') and zipfile.ZipFile(f).testzip() is None
|
||||
except Exception:
|
||||
ok = False
|
||||
if not ok:
|
||||
os.remove(f)
|
||||
PY
|
||||
after=$(find "$GITHUB_WORKSPACE/../robolectric-jars" -name '*.jar' | wc -l)
|
||||
[ "$after" -gt "${ROBOLECTRIC_JARS_BEFORE:-0}" ] && echo "save=true" >> "$GITHUB_OUTPUT" || true
|
||||
- name: Store Robolectric's Android jars
|
||||
if: always() && steps.robolectric-jars-final.outputs.save == 'true'
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: ../robolectric-jars
|
||||
key: robolectric-android-all-v3-${{ steps.robolectric.outputs.version }}-${{ github.run_id }}
|
||||
|
||||
- name: Upload unit test diagnostics
|
||||
id: unit-test-diagnostics
|
||||
if: always() && steps.unit-tests.outcome != 'skipped'
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
|
||||
DroidDeck brings the SteamOS experience to Android: Steam Gaming Mode, full Linux desktop, integration with GOG, Epic Games, Xbox, and other storefronts, Steam VR, and more!
|
||||
|
||||
<p align="center"><b>100% open source. No ads. No Subscriptions. No telemetry. No proprietary components. No source withheld.</b></p>
|
||||
<p align="center"><b>100% open source. No ads. No telemetry. No proprietary components. No source withheld.</b></p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/Droid-Deck/DroidDeck/releases/download/0.7.11/DroidDeck-0.7.11.apk"><img src="https://img.shields.io/badge/Download-DroidDeck%200.7.11%20APK-3DDC84?style=for-the-badge&logo=android&logoColor=white" alt="Download DroidDeck 0.7.11"></a>
|
||||
<a href="https://github.com/Droid-Deck/DroidDeck/releases/download/0.7.1/DroidDeck-0.7.1.apk"><img src="https://img.shields.io/badge/Download-DroidDeck%200.7.1%20APK-3DDC84?style=for-the-badge&logo=android&logoColor=white" alt="Download DroidDeck 0.7.1"></a>
|
||||
<a href="https://discord.gg/JRGAvawjsm"><img src="https://img.shields.io/badge/Discord-Join%20us-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Join the DroidDeck Discord"></a>
|
||||
</p>
|
||||
|
||||
@@ -23,7 +23,7 @@ DroidDeck brings the SteamOS experience to Android: Steam Gaming Mode, full Linu
|
||||
<a href="https://trendshift.io/repositories/267852"><img src="https://trendshift.io/api/badge/trendshift/repositories/267852/daily?language=Kotlin" alt="Droid-Deck%2FDroidDeck | Trendshift" width="250" height="55"></a>
|
||||
</p>
|
||||
|
||||
<p align="center"><a href="https://www.youtube.com/watch?v=ruaTSm_7a2c"><img src="docs/media/droiddeck-showcase.gif" width="60%" alt="A table of handhelds and phones all running DroidDeck, one waking to the Steam menu, the AYN Thor's bottom screen used as a touchpad, and scrolling around Steam on a phone before swiping to the home screen. Footage from Cyber Dopamine's video, linked."></a></p>
|
||||
<p align="center"><img src="docs/media/steam-to-desktop.gif" width="100%" alt="On a Retroid Pocket Duo: Play Steam from the DroidDeck launcher, open Pac-Man in Steam Big Picture and play it, exit the game, then Switch to Desktop from the Power menu"></p>
|
||||
|
||||
> The official website is [droid-deck.dev](https://droid-deck.dev). Only download DroidDeck from this repository's [Releases](https://github.com/Droid-Deck/DroidDeck/releases).
|
||||
|
||||
@@ -38,7 +38,7 @@ DroidDeck brings the SteamOS experience to Android: Steam Gaming Mode, full Linu
|
||||
|
||||
1. Android 9 or newer on Adreno 730 or newer, or any 8xx. Adreno 6xx, Mali, Xclipse and PowerVR are experimental. Adreno 710 is currently unsupported. No root needed.
|
||||
2. About 3 GB free for the runtime, plus 1.1 GB for the desktop and emulators.
|
||||
3. Install the [APK](https://github.com/Droid-Deck/DroidDeck/releases/download/0.7.11/DroidDeck-0.7.11.apk), install the Linux runtime, press **Play** and sign in to Steam.
|
||||
3. Install the [APK](https://github.com/Droid-Deck/DroidDeck/releases/download/0.7.1/DroidDeck-0.7.1.apk), install the Linux runtime, press **Play** and sign in to Steam.
|
||||
4. On Android 14 and newer, turn on **Disable child process restrictions** in Developer options. On Android 12 and 13, Steam's first launch shows a **Fix it for me** button that walks you through it.
|
||||
|
||||
Smart glasses setup is in the [support matrix](docs/smart-glasses-support.md). Release notes are in [docs/releases](docs/releases).
|
||||
@@ -57,6 +57,9 @@ The APK lands in `app/build/outputs/apk/release/`. Install it with `tools/deploy
|
||||
|
||||
On Windows, see `tools/run_windows.ps1` and `tools/prepare_windows_runtime.py`.
|
||||
|
||||
## Limits
|
||||
|
||||
Compatibility and performance vary by device. Desktop compositing is software rendered, and Firefox sandboxing is reduced under proot.
|
||||
|
||||
## Credits and licence
|
||||
|
||||
|
||||
@@ -132,8 +132,8 @@ android {
|
||||
applicationId "com.droiddeck.launcher"
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 34
|
||||
versionCode 20
|
||||
versionName "0.7.11"
|
||||
versionCode 19
|
||||
versionName "0.7.1"
|
||||
buildConfigField "String", "BUILD_LABEL", "\"${escapedBuildLabel}\""
|
||||
buildConfigField "String", "SOURCE_COMMIT", "\"${sourceCommit}\""
|
||||
buildConfigField "int", "PR_NUMBER", "${prNumber}"
|
||||
|
||||
@@ -141,7 +141,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
private var glThread by mutableStateOf(true)
|
||||
private var noGlError by mutableStateOf(true)
|
||||
private var returnAfterGame by mutableStateOf(true)
|
||||
private var valveProtonOnDemand by mutableStateOf(true)
|
||||
private var shaderPrecache by mutableStateOf<Boolean?>(null)
|
||||
private var steamRepairQueued by mutableStateOf(false)
|
||||
private var mangoapp by mutableStateOf(true)
|
||||
@@ -2385,7 +2384,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
homeScreenEnabled = HomeApp.isHomeScreenEnabled(this)
|
||||
homeAppSelected = homeScreenEnabled && HomeApp.isDefault(this)
|
||||
defaultHomeLabel = HomeApp.defaultLabel(this)
|
||||
com.droiddeck.launcher.ui.NavTabs.syncHomeApps(this, homeAppSelected)
|
||||
refreshAndroidApps()
|
||||
integrationState = readIntegration()
|
||||
}
|
||||
@@ -2786,7 +2784,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
steamClientArch = if (mode == SessionService.MODE_STEAM) steamClientArch else null,
|
||||
returnAfterGame = if (mode == SessionService.MODE_STEAM) returnAfterGame else null,
|
||||
shaderPrecache = if (mode == SessionService.MODE_STEAM) shaderPrecache else null,
|
||||
valveProtonOnDemand = if (mode == SessionService.MODE_STEAM) valveProtonOnDemand else null,
|
||||
steamRepairQueued = steamRepairQueued,
|
||||
mangoapp = mangoapp,
|
||||
steamController = if (mode == SessionService.MODE_STEAM) steamController else null,
|
||||
@@ -2894,7 +2891,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
onMangoapp = { on -> SessionPrefs.setMangoapp(this, on); mangoapp = on },
|
||||
onReturnAfterGame = { on -> SessionPrefs.setReturnAfterGame(this, on); returnAfterGame = on },
|
||||
onShaderPrecache = { on -> SessionPrefs.setShaderPrecache(this, on); shaderPrecache = on },
|
||||
onValveProtonOnDemand = { on -> SessionPrefs.setValveProtonOnDemand(this, on); valveProtonOnDemand = on },
|
||||
onSteamController = { id -> SessionPrefs.setSteamController(this, id); steamController = id },
|
||||
onStartupSession = { id ->
|
||||
SessionPrefs.setStartupSession(this, id)
|
||||
@@ -3167,7 +3163,6 @@ class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPet
|
||||
steamRepairQueued = SteamRepair.queued(this)
|
||||
mangoapp = SessionPrefs.mangoapp(this)
|
||||
returnAfterGame = SessionPrefs.returnAfterGame(this)
|
||||
valveProtonOnDemand = SessionPrefs.valveProtonOnDemand(this)
|
||||
loadShaderPrecache(mode)
|
||||
steamController = SessionPrefs.steamController(this)
|
||||
startupSession = SessionPrefs.startupSession(this)
|
||||
|
||||
@@ -49,7 +49,7 @@ internal class ProtonMenu(
|
||||
@VisibleForTesting internal var latestCheck: (Boolean) -> Boolean = { force -> ProtonExtras.checkLatest(activity, force) }
|
||||
@VisibleForTesting internal var experimentalRefresh: () -> List<ExperimentalProtons.Release>? = { ExperimentalProtons.refresh(activity) }
|
||||
@VisibleForTesting internal var installer: (ProtonExtras.Tool, (String, Int) -> Unit) -> String? =
|
||||
{ tool, progress -> ProtonExtras.install(activity, tool, onProgress = progress) }
|
||||
{ tool, progress -> ProtonExtras.install(activity, tool, progress) }
|
||||
|
||||
fun installProton(id: String, automatic: Boolean = false) {
|
||||
val tool = ProtonExtras.tools.firstOrNull { it.id == id } ?: return
|
||||
|
||||
@@ -2834,7 +2834,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
|
||||
private fun installProton(): String? {
|
||||
uiHandler.post { loading.percent = -1; loading.say(getString(PROTON_LINES.downloading), PROTON_LINES.topic, readable = true) }
|
||||
if (com.droiddeck.launcher.session.SessionPrefs.ownProtonFirst(this)) return installOwnProton()
|
||||
val catalog = com.droiddeck.launcher.runtime.DesktopCatalog
|
||||
val cancellation = com.droiddeck.launcher.core.Downloader.Cancellation { SessionState.stopRequested }
|
||||
SessionState.installCancellation = cancellation
|
||||
@@ -2847,24 +2846,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}
|
||||
}
|
||||
|
||||
private fun installOwnProton(): String? {
|
||||
val extras = com.droiddeck.launcher.session.ProtonExtras
|
||||
while ((extras.prefetching || extras.installInProgress) && !SessionState.stopRequested) {
|
||||
try { Thread.sleep(250) } catch (_: InterruptedException) { Thread.currentThread().interrupt(); return "interrupted" }
|
||||
}
|
||||
if (SessionState.stopRequested) return "cancelled"
|
||||
if (!com.droiddeck.launcher.runtime.DesktopCatalog.ownProtonMissing(this)) return null
|
||||
val cancellation = com.droiddeck.launcher.core.Downloader.Cancellation { SessionState.stopRequested }
|
||||
SessionState.installCancellation = cancellation
|
||||
return try {
|
||||
extras.install(this, extras.tools.first { it.id == extras.OWN }, cancellation) { label, percent ->
|
||||
uiHandler.post { loading.percent = percent; loading.say(label, PROTON_LINES.topic, readable = true) }
|
||||
}.also { if (it == null) com.droiddeck.launcher.session.Onboarding.recheck(this) }
|
||||
} finally {
|
||||
if (SessionState.installCancellation === cancellation) SessionState.installCancellation = null
|
||||
}
|
||||
}
|
||||
|
||||
override fun surfaceCreated(holder: SurfaceHolder) {
|
||||
if (holder !== outputHolder()) return
|
||||
if (installingRuntime || SessionState.stopRequested || ended) return
|
||||
@@ -3414,7 +3395,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
if (status == 0) SessionState.takeRelaunch()?.let { next ->
|
||||
next.putExtra(EXTRA_RETURN_HOME, intent.getBooleanExtra(EXTRA_RETURN_HOME, false))
|
||||
next.putExtra(EXTRA_LINK_TASK, intent.getIntExtra(EXTRA_LINK_TASK, -1))
|
||||
relaunch(next)
|
||||
setIntent(next)
|
||||
recreate()
|
||||
return@runOnUiThread
|
||||
}
|
||||
showEnded(status, hint)
|
||||
@@ -3422,16 +3404,6 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
}, "session-end-hint").start()
|
||||
}
|
||||
|
||||
// recreate() keeps this window, and Compose content added to it afterwards never recomposes, so the
|
||||
// loading screen of the next session stays up over a running session. A new instance gets its own window.
|
||||
// This instance finishes first because the activity is singleTask and would otherwise take the intent itself.
|
||||
private fun relaunch(next: Intent) {
|
||||
closeAtOnce = true
|
||||
super.finish()
|
||||
startActivity(next)
|
||||
overridePendingTransition(0, 0)
|
||||
}
|
||||
|
||||
private fun showEnded(status: Int, hint: EndHint?) {
|
||||
if (status == 0 && hint?.evenOnSuccess != true) {
|
||||
finish()
|
||||
@@ -6059,7 +6031,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
Log.w(TAG, "ignoring agent start while session phase is ${SessionState.phase}")
|
||||
return
|
||||
}
|
||||
relaunch(android.content.Intent(intent).setClass(this, SessionActivity::class.java))
|
||||
setIntent(intent)
|
||||
recreate()
|
||||
return
|
||||
}
|
||||
if (this.intent.getBooleanExtra(EXTRA_RETURN_HOME, false)) intent.putExtra(EXTRA_RETURN_HOME, true)
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.droiddeck.launcher.audio;
|
||||
import android.os.Process;
|
||||
import android.util.Log;
|
||||
|
||||
import com.droiddeck.launcher.core.CappedLogWriter;
|
||||
import com.droiddeck.launcher.core.FileUtils;
|
||||
import com.droiddeck.launcher.core.SessionPart;
|
||||
import com.droiddeck.launcher.core.HostProcess;
|
||||
@@ -16,6 +17,7 @@ public class DirectAudioRelayComponent extends SessionPart {
|
||||
|
||||
private final File socketPath;
|
||||
private File logFile;
|
||||
private volatile CappedLogWriter log;
|
||||
private final File micFifoPath;
|
||||
private volatile int pid = -1;
|
||||
private final Object micLock = new Object();
|
||||
@@ -77,24 +79,23 @@ public class DirectAudioRelayComponent extends SessionPart {
|
||||
}
|
||||
ArrayList<String> env = new ArrayList<>();
|
||||
env.add("HOME=" + app().getFilesDir());
|
||||
java.io.PrintWriter out = null;
|
||||
CappedLogWriter out = null;
|
||||
if (logFile != null) {
|
||||
try {
|
||||
out = new java.io.PrintWriter(new java.io.FileWriter(logFile, true));
|
||||
out.println("== DirectAudio relay helper starting"
|
||||
out = new CappedLogWriter(logFile, true);
|
||||
out.line("== DirectAudio relay helper starting"
|
||||
+ (withMic ? " with the microphone" : " (no microphone)"));
|
||||
out.flush();
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "could not open " + logFile, e);
|
||||
}
|
||||
}
|
||||
final java.io.PrintWriter log = out;
|
||||
final CappedLogWriter helperLog = out;
|
||||
log = out;
|
||||
pid = HostProcess.start(command.toString(), env.toArray(new String[0]),
|
||||
app().getFilesDir(), null,
|
||||
line -> {
|
||||
Log.i(TAG, line);
|
||||
if (helperLog == null || helperLog.line(line)) Log.i(TAG, line);
|
||||
if (withMic) trackMic(line);
|
||||
if (log != null) synchronized (log) { log.println(line); log.flush(); }
|
||||
});
|
||||
Log.i(TAG, "started pid=" + pid + " socket=" + socketPath
|
||||
+ (withMic ? " mic=" + micFifoPath : " (no microphone)"));
|
||||
@@ -141,6 +142,9 @@ public class DirectAudioRelayComponent extends SessionPart {
|
||||
Process.killProcess(pid);
|
||||
pid = -1;
|
||||
}
|
||||
CappedLogWriter current = log;
|
||||
log = null;
|
||||
if (current != null) current.close();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -4,6 +4,7 @@ import android.content.Context;
|
||||
import android.os.Process;
|
||||
import android.util.Log;
|
||||
|
||||
import com.droiddeck.launcher.core.CappedLogWriter;
|
||||
import com.droiddeck.launcher.core.FileUtils;
|
||||
import com.droiddeck.launcher.core.SessionPart;
|
||||
import com.droiddeck.launcher.core.HostProcess;
|
||||
@@ -32,6 +33,7 @@ public class PulseAudioComponent extends SessionPart {
|
||||
private final File workingDir;
|
||||
private final File deviceControls;
|
||||
private File logFile;
|
||||
private CappedLogWriter log;
|
||||
private final String micFifoPath;
|
||||
private final HostLifecycle host = new HostLifecycle(Process::killProcess);
|
||||
|
||||
@@ -191,7 +193,7 @@ public class PulseAudioComponent extends SessionPart {
|
||||
+ " --system=false --disable-shm=true --fail=false"
|
||||
+ " -n --file=default.pa --daemonize=false --use-pid-file=false --exit-idle-time=-1"
|
||||
+ " --log-level=info";
|
||||
final java.io.PrintWriter out = openLog();
|
||||
final CappedLogWriter out = openLog();
|
||||
if (!host.launch(generation, () -> HostProcess.start(command, env.toArray(new String[0]), workingDir, status -> {
|
||||
if (host.exited(generation)) {
|
||||
Log.w(TAG, "audio host exited with status " + status + "; restarting");
|
||||
@@ -199,8 +201,7 @@ public class PulseAudioComponent extends SessionPart {
|
||||
}
|
||||
},
|
||||
line -> {
|
||||
Log.i(TAG, line);
|
||||
if (out != null) synchronized (out) { out.println(line); out.flush(); }
|
||||
if (out == null || out.line(line)) Log.i(TAG, line);
|
||||
}))) return;
|
||||
long token = host.token();
|
||||
Thread guard = new Thread(() -> ensureClientSink(out, token), "pulse-sink-guard");
|
||||
@@ -208,7 +209,7 @@ public class PulseAudioComponent extends SessionPart {
|
||||
guard.start();
|
||||
}
|
||||
|
||||
private void ensureClientSink(java.io.PrintWriter out, long token) {
|
||||
private void ensureClientSink(CappedLogWriter out, long token) {
|
||||
try {
|
||||
// Nothing that may block (a sink whose AAudio open hangs: a Galaxy S24 FE (US) hung the
|
||||
// daemon's start-up loading one from default.pa) is loaded by the daemon itself; the
|
||||
@@ -253,17 +254,17 @@ public class PulseAudioComponent extends SessionPart {
|
||||
Log.w(TAG, line);
|
||||
}
|
||||
Log.i(TAG, line);
|
||||
if (out != null) synchronized (out) { out.println(line); out.flush(); }
|
||||
if (out != null) out.line(line);
|
||||
} catch (Throwable t) {
|
||||
Log.w(TAG, "ensureClientSink failed", t);
|
||||
}
|
||||
}
|
||||
|
||||
/** A timestamped line in the session's audio log. */
|
||||
private void note(java.io.PrintWriter out, String what) {
|
||||
private void note(CappedLogWriter out, String what) {
|
||||
String line = "== " + new java.text.SimpleDateFormat("HH:mm:ss.SSS", java.util.Locale.US).format(new java.util.Date()) + " " + what;
|
||||
Log.i(TAG, line);
|
||||
if (out != null) synchronized (out) { out.println(line); out.flush(); }
|
||||
if (out != null) out.line(line);
|
||||
}
|
||||
|
||||
private String pactlFor(long token, String... args) {
|
||||
@@ -330,6 +331,7 @@ public class PulseAudioComponent extends SessionPart {
|
||||
@Override
|
||||
public void stop() {
|
||||
host.stop();
|
||||
closeLog();
|
||||
}
|
||||
|
||||
public boolean setSinkSuspended(boolean suspended) {
|
||||
@@ -380,19 +382,24 @@ public class PulseAudioComponent extends SessionPart {
|
||||
}
|
||||
}
|
||||
|
||||
private java.io.PrintWriter openLog() {
|
||||
private synchronized CappedLogWriter openLog() {
|
||||
closeLog();
|
||||
if (logFile == null) return null;
|
||||
try {
|
||||
java.io.PrintWriter w = new java.io.PrintWriter(new java.io.FileWriter(logFile, true));
|
||||
w.println("== PulseAudio daemon starting" + (micFifoPath != null ? " with a microphone source" : ""));
|
||||
w.flush();
|
||||
return w;
|
||||
log = new CappedLogWriter(logFile, true);
|
||||
log.line("== PulseAudio daemon starting" + (micFifoPath != null ? " with a microphone source" : ""));
|
||||
return log;
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "could not open " + logFile, e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private synchronized void closeLog() {
|
||||
if (log != null) log.close();
|
||||
log = null;
|
||||
}
|
||||
|
||||
private void copyFromLibraryDir() {
|
||||
String[] libs = {"libltdl.so", "libpulseaudio.so", "libpulse.so",
|
||||
"libpulsecommon-13.0.so", "libpulsecore-13.0.so", "libsndfile.so", "libffi.so"};
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.droiddeck.launcher.core
|
||||
|
||||
import java.io.BufferedWriter
|
||||
import java.io.Closeable
|
||||
import java.io.File
|
||||
import java.io.FileOutputStream
|
||||
import java.io.OutputStreamWriter
|
||||
|
||||
class CappedLogWriter @JvmOverloads constructor(
|
||||
private val file: File,
|
||||
append: Boolean,
|
||||
private val limitBytes: Long = SESSION_LOG_LIMIT_BYTES,
|
||||
private val tailLines: Int = TAIL_LINES,
|
||||
) : Closeable {
|
||||
private val out = BufferedWriter(OutputStreamWriter(FileOutputStream(file, append), Charsets.UTF_8))
|
||||
private val tail = ArrayDeque<String>()
|
||||
private var dropped = 0L
|
||||
private var closed = false
|
||||
|
||||
@Synchronized
|
||||
fun line(text: String): Boolean {
|
||||
if (closed) return false
|
||||
if (dropped == 0L && file.length() + text.toByteArray(Charsets.UTF_8).size + 1 <= limitBytes) {
|
||||
runCatching { out.write(text); out.newLine(); out.flush() }
|
||||
return true
|
||||
}
|
||||
if (dropped == 0L) {
|
||||
runCatching {
|
||||
out.write("== this log reached its ${limitBytes / (1024 * 1024)} MB limit; later lines are dropped and only the last $tailLines are kept at the end")
|
||||
out.newLine()
|
||||
out.flush()
|
||||
}
|
||||
}
|
||||
dropped++
|
||||
tail.addLast(text)
|
||||
if (tail.size > tailLines) tail.removeFirst()
|
||||
return false
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
override fun close() {
|
||||
if (closed) return
|
||||
closed = true
|
||||
runCatching {
|
||||
if (dropped > 0) {
|
||||
out.write("== ${dropped - tail.size} lines dropped after the limit; the last ${tail.size} follow")
|
||||
out.newLine()
|
||||
tail.forEach { out.write(it); out.newLine() }
|
||||
}
|
||||
out.flush()
|
||||
}
|
||||
runCatching { out.close() }
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val SESSION_LOG_LIMIT_BYTES = 64L * 1024 * 1024
|
||||
const val TAIL_LINES = 400
|
||||
}
|
||||
}
|
||||
@@ -293,7 +293,6 @@ object DeviceReport {
|
||||
k("Stretch 16:9 to panel", SessionPrefs.stretch16x9(context))
|
||||
k("Avoid notch", SessionPrefs.avoidNotch(context))
|
||||
k("Return to launcher after a game", SessionPrefs.returnAfterGame(context))
|
||||
k("Valve Proton only when needed", SessionPrefs.valveProtonOnDemand(context))
|
||||
k("Microphone", SessionPrefs.micEnabled(context))
|
||||
k("On-screen controls", SessionPrefs.oscMode(context))
|
||||
k("Touch mode", SessionPrefs.touchMode(context))
|
||||
|
||||
@@ -3,7 +3,6 @@ package com.droiddeck.launcher.core
|
||||
import android.content.Context
|
||||
import android.os.Process
|
||||
import android.util.Log
|
||||
import java.io.BufferedWriter
|
||||
import java.io.File
|
||||
import java.io.FileOutputStream
|
||||
import java.nio.file.Files
|
||||
@@ -14,7 +13,7 @@ object SessionLogCapture {
|
||||
private const val TAG = "SessionLogCapture"
|
||||
|
||||
private var pid = -1
|
||||
private var writer: BufferedWriter? = null
|
||||
private var writer: CappedLogWriter? = null
|
||||
private var target: File? = null
|
||||
private var syncer: Thread? = null
|
||||
|
||||
@@ -22,26 +21,20 @@ object SessionLogCapture {
|
||||
fun start(target: File, sinceMillis: Long) {
|
||||
stop()
|
||||
try {
|
||||
val out = target.bufferedWriter()
|
||||
out.write("The app's own log for this session (logcat, this process only).\n")
|
||||
out.write("Lines the app wrote before the session folder existed are in logcat only.\n\n")
|
||||
out.flush()
|
||||
val out = CappedLogWriter(target, false)
|
||||
out.line("The app's own log for this session (logcat, this process only).")
|
||||
out.line("Lines the app wrote before the session folder existed are in logcat only.")
|
||||
out.line("")
|
||||
writer = out
|
||||
this.target = target
|
||||
pid = HostProcess.start(
|
||||
command(Process.myPid(), sinceMillis),
|
||||
null, target.parentFile, null,
|
||||
) { line ->
|
||||
synchronized(this) {
|
||||
try {
|
||||
writer?.apply { write(line); newLine(); flush() }
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
synchronized(this) { writer?.line(line) }
|
||||
}
|
||||
if (pid == -1) {
|
||||
out.write("logcat could not be started; this ROM may not hand an app its own entries.\n")
|
||||
out.flush()
|
||||
out.line("logcat could not be started; this ROM may not hand an app its own entries.")
|
||||
}
|
||||
target.parentFile?.let { syncer = startSyncing(it) }
|
||||
Log.i(TAG, "app log -> $target (logcat pid $pid)")
|
||||
@@ -81,10 +74,7 @@ object SessionLogCapture {
|
||||
}
|
||||
pid = -1
|
||||
}
|
||||
try {
|
||||
writer?.close()
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
writer?.close()
|
||||
writer = null
|
||||
}
|
||||
|
||||
|
||||
@@ -33,13 +33,6 @@ object SocNames {
|
||||
fun name(model: String, platform: String = GpuInfo.systemProperty("ro.board.platform")): String? =
|
||||
MODELS[normalizedModel(model)] ?: PLATFORMS[platform.lowercase()]?.let { "$it family" }
|
||||
|
||||
// Without label's platform-family guess: a rebadged chip such as the Duo's CQ7790S reports a platform it is not.
|
||||
fun plainName(model: String = model(), maker: String = manufacturer()): String =
|
||||
MODELS[normalizedModel(model)]?.let { "$it ($model)" } ?: "$maker $model".trim()
|
||||
|
||||
private fun manufacturer(): String =
|
||||
if (Build.VERSION.SDK_INT >= 31) Build.SOC_MANUFACTURER.takeIf { it != Build.UNKNOWN }.orEmpty() else ""
|
||||
|
||||
fun label(model: String = model(), platform: String = GpuInfo.systemProperty("ro.board.platform")): String {
|
||||
val name = name(model, platform)
|
||||
return when {
|
||||
|
||||
@@ -109,15 +109,9 @@ object DesktopCatalog {
|
||||
FileUtils.readString(marker(context, id))?.trim()?.takeIf { it.isNotEmpty() }
|
||||
|
||||
fun protonSeedNeeded(context: Context): Boolean =
|
||||
if (com.droiddeck.launcher.session.SessionPrefs.ownProtonFirst(context)) ownProtonMissing(context)
|
||||
else installed(context, PROTON_SEED_ID) == null &&
|
||||
installed(context, PROTON_SEED_ID) == null &&
|
||||
!File(LinuxRuntime.rootDir(context), "root/.local/share/Steam/steamapps/appmanifest_4427310.acf").isFile
|
||||
|
||||
fun ownProtonMissing(context: Context): Boolean {
|
||||
val extras = com.droiddeck.launcher.session.ProtonExtras
|
||||
return extras.installedAll(context, extras.tools.first { it.id == extras.OWN }).isEmpty()
|
||||
}
|
||||
|
||||
const val DESKTOP_ID = "desktop-kde"
|
||||
const val EMULATORS_ID = "emulators"
|
||||
private const val EMULATORS_SCRIPT = "/usr/local/bin/droiddeck-emulators"
|
||||
|
||||
@@ -22,7 +22,7 @@ class RuntimeInstallService : Service() {
|
||||
if (intent?.action == ACTION_PACKAGE) return holdPackage(startId)
|
||||
val removal = intent?.action == ACTION_REMOVE
|
||||
val release = intent?.let(::releaseFrom)
|
||||
val foreground = enterForeground(notification(getString(if (LinuxRuntimeInstaller.isMaintaining()) R.string.desktop_removing else if (removal) R.string.rtinst_removing else R.string.user_apps_starting), -1))
|
||||
startForeground(NOTIFICATION_ID, notification(getString(if (LinuxRuntimeInstaller.isMaintaining()) R.string.desktop_removing else if (removal) R.string.rtinst_removing else R.string.user_apps_starting), -1))
|
||||
if (release == null && !removal) {
|
||||
stopSelf(startId)
|
||||
return START_NOT_STICKY
|
||||
@@ -31,7 +31,7 @@ class RuntimeInstallService : Service() {
|
||||
val manager = getSystemService(NotificationManager::class.java)
|
||||
var shown = ""
|
||||
val progress = LinuxRuntimeInstaller.ProgressListener { stage, percent ->
|
||||
if (foreground && "$stage:$percent" != shown) {
|
||||
if ("$stage:$percent" != shown) {
|
||||
shown = "$stage:$percent"
|
||||
manager?.notify(NOTIFICATION_ID, notification(stage, percent))
|
||||
}
|
||||
@@ -46,10 +46,7 @@ class RuntimeInstallService : Service() {
|
||||
}
|
||||
|
||||
private fun holdPackage(startId: Int): Int {
|
||||
if (!enterForeground(notification(packageStage, packagePercent, packageTitle))) {
|
||||
stopSelf(startId)
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
startForeground(NOTIFICATION_ID, notification(packageStage, packagePercent, packageTitle))
|
||||
Thread({
|
||||
val manager = getSystemService(NotificationManager::class.java)
|
||||
var shown = ""
|
||||
@@ -68,15 +65,6 @@ class RuntimeInstallService : Service() {
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
|
||||
/** Android 12+ refuses a foreground start while the app is in the background; the work then goes on without the notification. */
|
||||
private fun enterForeground(notification: Notification): Boolean = try {
|
||||
startForeground(NOTIFICATION_ID, notification)
|
||||
true
|
||||
} catch (e: IllegalStateException) {
|
||||
android.util.Log.w("RuntimeInstallService", "running without a foreground service: $e")
|
||||
false
|
||||
}
|
||||
|
||||
private fun notification(stage: String, percent: Int, title: String? = null): Notification {
|
||||
val manager = getSystemService(NotificationManager::class.java)
|
||||
manager?.createNotificationChannel(NotificationChannel(CHANNEL_ID, getString(R.string.setup_runtime),
|
||||
|
||||
@@ -249,24 +249,21 @@ object ProtonExtras {
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun install(context: Context, tool: Tool, cancelled: java.util.function.BooleanSupplier? = null,
|
||||
onProgress: (String, Int) -> Unit): String? {
|
||||
fun install(context: Context, tool: Tool, onProgress: (String, Int) -> Unit): String? {
|
||||
if (installInProgress || prefetching) return context.getString(R.string.pextra_busy)
|
||||
installInProgress = true
|
||||
return try { installNow(context, tool, cancelled, onProgress) } finally { installInProgress = false }
|
||||
return try { installNow(context, tool, onProgress) } finally { installInProgress = false }
|
||||
}
|
||||
|
||||
private fun fetchArchive(context: Context, tool: Tool, asset: Asset, archive: File, onProgress: (String, Int) -> Unit,
|
||||
cancelled: java.util.function.BooleanSupplier? = null): String? {
|
||||
private fun fetchArchive(context: Context, tool: Tool, asset: Asset, archive: File, onProgress: (String, Int) -> Unit): String? {
|
||||
val downloading = context.getString(R.string.pextra_downloading, tool.name, asset.tag)
|
||||
onProgress(downloading, 0)
|
||||
var downloaded = false
|
||||
for (attempt in 0 until 5) {
|
||||
downloaded = Downloader.downloadFile(asset.url, archive, true, asset.sha256, cancelled) { fraction ->
|
||||
downloaded = Downloader.downloadFile(asset.url, archive, true, asset.sha256) { fraction ->
|
||||
onProgress(downloading, if (fraction < 0) -1 else (fraction * 100f).toInt().coerceIn(0, 100))
|
||||
}
|
||||
if (downloaded) break
|
||||
if (cancelled?.asBoolean == true) return context.getString(R.string.pextra_interrupted)
|
||||
if (attempt < 4) {
|
||||
onProgress(context.getString(R.string.pextra_retrying, attempt + 2, 5), -1)
|
||||
try { Thread.sleep(3_000) } catch (_: InterruptedException) {
|
||||
@@ -300,8 +297,7 @@ object ProtonExtras {
|
||||
return problem
|
||||
}
|
||||
|
||||
private fun installNow(context: Context, tool: Tool, cancelled: java.util.function.BooleanSupplier?,
|
||||
onProgress: (String, Int) -> Unit): String? {
|
||||
private fun installNow(context: Context, tool: Tool, onProgress: (String, Int) -> Unit): String? {
|
||||
if (SessionState.running) return context.getString(R.string.pextra_stop_session)
|
||||
if (!LinuxRuntime.isInstalled(context)) return context.getString(R.string.user_apps_runtime_required)
|
||||
|
||||
@@ -316,7 +312,7 @@ object ProtonExtras {
|
||||
|
||||
val checked = asset.sha256 != null && asset.size > 0 && checkedArchive == fingerprint(archive) &&
|
||||
checkedDigest.equals(asset.sha256, ignoreCase = true)
|
||||
if (!checked) fetchArchive(context, tool, asset, archive, onProgress, cancelled)?.let { return it }
|
||||
if (!checked) fetchArchive(context, tool, asset, archive, onProgress)?.let { return it }
|
||||
if (asset.size > 0 && archive.length() != asset.size) {
|
||||
if (archive.length() > asset.size) {
|
||||
archive.delete()
|
||||
|
||||
@@ -28,14 +28,12 @@ object SessionFiles {
|
||||
"usr/local/bin/droiddeck-bottom-desktop" to "usr/local/bin/droiddeck-bottom-desktop",
|
||||
"usr/local/bin/droiddeck-gpu" to "usr/local/bin/droiddeck-gpu",
|
||||
"usr/local/bin/droiddeck-desktop-gpu" to "usr/local/bin/droiddeck-desktop-gpu",
|
||||
"usr/local/bin/droiddeck-device-info" to "usr/local/bin/droiddeck-device-info",
|
||||
"usr/local/bin/droiddeck-desktop-window-rules" to "usr/local/bin/droiddeck-desktop-window-rules",
|
||||
"usr/local/bin/droiddeck-library-perms" to "usr/local/bin/droiddeck-library-perms",
|
||||
"usr/local/bin/droiddeck-ime" to "usr/local/bin/droiddeck-ime",
|
||||
"usr/local/bin/kwin_wayland_wrapper" to "usr/local/bin/kwin_wayland_wrapper",
|
||||
"usr/lib/firefox/defaults/pref/droiddeck.js" to "usr/lib/firefox/defaults/pref/droiddeck.js",
|
||||
"etc/xdg/autostart/droiddeck-clipboard.desktop" to "etc/xdg/autostart/droiddeck-clipboard.desktop",
|
||||
"etc/xdg/fastfetch/config.jsonc" to "etc/xdg/fastfetch/config.jsonc",
|
||||
)
|
||||
|
||||
private val SERVICE_PACKS = mapOf(
|
||||
|
||||
@@ -448,13 +448,6 @@ object SessionPrefs {
|
||||
prefs(context).edit().putString("navTabHidden", keys.joinToString(",")).apply()
|
||||
}
|
||||
|
||||
fun appsTabHomeSeen(context: Context): Boolean? =
|
||||
prefs(context).takeIf { it.contains("appsTabHomeSeen") }?.getBoolean("appsTabHomeSeen", false)
|
||||
|
||||
fun setAppsTabHomeSeen(context: Context, seen: Boolean) {
|
||||
prefs(context).edit().putBoolean("appsTabHomeSeen", seen).apply()
|
||||
}
|
||||
|
||||
private fun idList(raw: String?): List<String> = raw.orEmpty().split(',').map { it.trim() }.filter { it.isNotEmpty() }
|
||||
|
||||
val STORES_SORTS = listOf("lastPlayed", "recentlyInstalled", "titleAsc", "titleDesc", "sizeDesc", "sizeAsc", "releaseDateDesc")
|
||||
@@ -845,15 +838,6 @@ object SessionPrefs {
|
||||
|
||||
fun returnAfterGame(context: Context): Boolean = prefs(context).getBoolean("returnAfterGame", true)
|
||||
|
||||
fun valveProtonOnDemand(context: Context): Boolean = prefs(context).getBoolean("valveProtonOnDemand", true)
|
||||
|
||||
fun setValveProtonOnDemand(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("valveProtonOnDemand", on).apply()
|
||||
}
|
||||
|
||||
/** DroidDeck-Proton is the Proton placed before the client starts; Valve's ARM64 Proton waits for a title that needs it. */
|
||||
fun ownProtonFirst(context: Context): Boolean = valveProtonOnDemand(context) && !ProtonExtras.declined(context)
|
||||
|
||||
fun setReturnAfterGame(context: Context, on: Boolean) {
|
||||
prefs(context).edit().putBoolean("returnAfterGame", on).apply()
|
||||
}
|
||||
|
||||
@@ -669,8 +669,6 @@ class SessionService : Service() {
|
||||
guest.add("DROIDDECK_WSI_BYPASS_CHECK_MS=100")
|
||||
guest.add("WINE_OFFSCREEN_CHECK_MS=100")
|
||||
guest.add("DD_REFRESH=" + Math.round(SessionState.refreshHz))
|
||||
guest.add("DD_DEVICE_NAME=" + android.os.Build.MODEL)
|
||||
com.droiddeck.launcher.gpu.SocNames.plainName().takeIf { it.isNotEmpty() }?.let { guest.add("DD_SOC_NAME=$it") }
|
||||
guest.add("DD_LOG=" + sessionLog.path)
|
||||
guest.add("DD_DEBUG_DIR=" + sessionDir.path)
|
||||
if (EnhancedDiagnostics.isActive(this, sessionDir)) guest.add("DROIDDECK_ENHANCED_DIAGNOSTICS=1")
|
||||
@@ -1004,7 +1002,6 @@ class SessionService : Service() {
|
||||
))
|
||||
guest.add("TZ=" + java.util.TimeZone.getDefault().id)
|
||||
if (SessionState.mode == MODE_STEAM) SessionPrefs.pendingShaderPrecache(this)?.let { guest.add("DD_SHADER_PRECACHE=" + if (it) "1" else "0") }
|
||||
guest.add("DD_VALVE_PROTON=" + if (SessionPrefs.ownProtonFirst(this)) "0" else "1")
|
||||
guest.add("XDG_RUNTIME_DIR=" + LinuxRuntime.GUEST_RUNTIME_DIR)
|
||||
guest.add("XDG_SESSION_TYPE=wayland")
|
||||
guest.add("WAYLAND_DISPLAY=wayland-0")
|
||||
|
||||
@@ -93,7 +93,6 @@ class ModeSettings(
|
||||
val steamClientArch: String? = null,
|
||||
val returnAfterGame: Boolean? = null,
|
||||
val shaderPrecache: Boolean? = null,
|
||||
val valveProtonOnDemand: Boolean? = null,
|
||||
val steamRepairQueued: Boolean = false,
|
||||
val mangoapp: Boolean = true,
|
||||
val steamController: String? = null,
|
||||
@@ -159,7 +158,6 @@ class ModeSettingsActions(
|
||||
val onMangoapp: (Boolean) -> Unit = {},
|
||||
val onReturnAfterGame: (Boolean) -> Unit = {},
|
||||
val onShaderPrecache: (Boolean) -> Unit = {},
|
||||
val onValveProtonOnDemand: (Boolean) -> Unit = {},
|
||||
val onSteamController: (String) -> Unit = {},
|
||||
val onUnfoldedControls: (Boolean) -> Unit = {},
|
||||
val onUnfoldedControlsWithController: (Boolean) -> Unit = {},
|
||||
@@ -536,10 +534,6 @@ fun ModeSheetRows(s: ModeSettings, a: ModeSettingsActions, tab: String, extras:
|
||||
stringResource(R.string.mode_shader_precache_hint),
|
||||
s.shaderPrecache, onChange = a.onShaderPrecache,
|
||||
)
|
||||
if (s.valveProtonOnDemand != null) ToggleRow(
|
||||
host, "valveprotonondemand", stringResource(R.string.mode_valve_proton_on_demand), null,
|
||||
s.valveProtonOnDemand, onChange = a.onValveProtonOnDemand,
|
||||
)
|
||||
SettingsRow(
|
||||
stringResource(R.string.mode_steam_repair),
|
||||
stringResource(if (s.steamRepairQueued) R.string.mode_steam_repair_queued else R.string.mode_steam_repair_hint),
|
||||
|
||||
@@ -27,9 +27,9 @@ internal object DeveloperTools {
|
||||
internal object NavTabs {
|
||||
const val MORE = "more"
|
||||
val ALL = listOf("steam", "desktop", "games", "downloads", "setup", "updates", "stores", "soundtracks", "components", "storage", "sync", "decky", "boot-movies", "android-apps", "agent")
|
||||
val DEFAULT_SHELVED = setOf("soundtracks", "components", "storage", "sync", "decky", "boot-movies", "agent")
|
||||
val DEFAULT_SHELVED = setOf("soundtracks", "components", "storage", "sync", "decky", "boot-movies", "android-apps", "agent")
|
||||
val DEFAULT_HIDDEN = setOf("android-apps", "agent")
|
||||
private val SHELVED_WHEN_NEW = setOf("storage", "sync", "decky", "boot-movies", "agent")
|
||||
private val SHELVED_WHEN_NEW = setOf("storage", "sync", "decky", "boot-movies", "android-apps", "agent")
|
||||
private val OLD_ORDER = listOf("steam", "games", "soundtracks", "stores", "downloads", "desktop", "agent", "components", "android-apps", "storage", "sync", "setup", "updates")
|
||||
private val OLD_SHELVED = setOf("soundtracks", "agent", "storage", "sync")
|
||||
private const val LAYOUT_VERSION = 2
|
||||
@@ -95,15 +95,6 @@ internal object NavTabs {
|
||||
else -> true
|
||||
}
|
||||
|
||||
// Apps only has content when DroidDeck is the home app, so it follows that state on each change and
|
||||
// otherwise stays wherever the user put it.
|
||||
fun syncHomeApps(context: Context, homeSelected: Boolean) {
|
||||
val seen = SessionPrefs.appsTabHomeSeen(context)
|
||||
SessionPrefs.setAppsTabHomeSeen(context, homeSelected)
|
||||
if (seen == homeSelected || (seen == null && !homeSelected)) return
|
||||
setHidden(context, "android-apps", !homeSelected)
|
||||
}
|
||||
|
||||
fun hideable(key: String) = key != "setup"
|
||||
|
||||
fun place(s: FrontEndState, key: String): TabPlace = when {
|
||||
|
||||
@@ -383,7 +383,6 @@
|
||||
<string name="mode_return_after_game">Return to DroidDeck after a game</string>
|
||||
<string name="mode_return_after_game_hint">When a game you started from DroidDeck or another launcher closes, Steam exits cleanly (cloud saves finish first) and you go back there. Off: stay in Steam.</string>
|
||||
<string name="mode_shader_precache">Shader pre-caching</string>
|
||||
<string name="mode_valve_proton_on_demand">Valve Proton only when needed</string>
|
||||
<string name="mode_shader_precache_hint">Steam downloads shaders prebuilt for your games and processes them in the background, so games stutter less. Off saves data, storage and battery; games build shaders as they play instead. The same setting as Steam’s Downloads > Shader Pre-Caching. Applies next session.</string>
|
||||
<string name="mode_steam_repair">Repair Steam client</string>
|
||||
<string name="mode_steam_repair_hint">Downloads the Steam client again the next time Steam starts. Use it if Steam stays on its loading screen. Games, sign-in and settings are kept.</string>
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
package com.droiddeck.launcher
|
||||
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
import java.io.File
|
||||
|
||||
class SessionRelaunchTest {
|
||||
// recreate() keeps the window, and Compose content set on it afterwards never recomposes (#2668):
|
||||
// a session relaunched that way kept its loading screen up over a running desktop.
|
||||
@Test fun sessionAndLauncherActivitiesNeverRecreateThemselves() {
|
||||
listOf("SessionActivity.kt", "FrontEndActivity.kt").forEach { name ->
|
||||
val code = File("src/main/java/com/droiddeck/launcher/$name").readLines()
|
||||
.map { it.substringBefore("//") }
|
||||
val calls = code.withIndex().filter { (_, line) -> Regex("""\brecreate\(\)""").containsMatchIn(line) }
|
||||
assertTrue("$name calls recreate() at line(s) ${calls.map { it.index + 1 }}", calls.isEmpty())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.droiddeck.launcher.core
|
||||
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.junit.rules.TemporaryFolder
|
||||
|
||||
class CappedLogWriterTest {
|
||||
@get:Rule val folder = TemporaryFolder()
|
||||
|
||||
@Test fun aLogUnderTheLimitIsWrittenAsIs() {
|
||||
val file = folder.newFile("app.log")
|
||||
CappedLogWriter(file, false, 1024, 3).use { log ->
|
||||
assertTrue(log.line("first"))
|
||||
assertTrue(log.line("second"))
|
||||
}
|
||||
assertEquals(listOf("first", "second"), file.readLines())
|
||||
}
|
||||
|
||||
@Test fun aReconnectStormStopsAtTheLimitAndKeepsTheLastLines() {
|
||||
val file = folder.newFile("audio.log")
|
||||
val limit = 4096L
|
||||
val log = CappedLogWriter(file, true, limit, 3)
|
||||
var written = 0
|
||||
for (n in 0 until 10_000) {
|
||||
if (log.line("I: [linker64] client.c: Created $n \"Native client (UNIX socket client)\"")) written++
|
||||
}
|
||||
val capped = file.length()
|
||||
assertTrue("file grew to $capped bytes", capped <= limit + 200)
|
||||
assertFalse(log.line("after the limit"))
|
||||
log.close()
|
||||
val lines = file.readLines()
|
||||
assertEquals(written, lines.count { it.startsWith("I: [linker64] client.c: Created ") } - 2)
|
||||
assertTrue(lines.any { it.startsWith("== this log reached its") })
|
||||
assertEquals("== ${10_000 + 1 - written - 3} lines dropped after the limit; the last 3 follow", lines[lines.size - 4])
|
||||
assertEquals(
|
||||
listOf(
|
||||
"I: [linker64] client.c: Created 9998 \"Native client (UNIX socket client)\"",
|
||||
"I: [linker64] client.c: Created 9999 \"Native client (UNIX socket client)\"",
|
||||
"after the limit",
|
||||
),
|
||||
lines.takeLast(3),
|
||||
)
|
||||
assertTrue(file.length() < limit + 1024)
|
||||
}
|
||||
|
||||
@Test fun twoWritersOnOneFileShareItsLimit() {
|
||||
val file = folder.newFile("audio.log")
|
||||
val daemon = CappedLogWriter(file, true, 2048, 2)
|
||||
val relay = CappedLogWriter(file, true, 2048, 2)
|
||||
repeat(2_000) { daemon.line("I: [linker64] protocol-native.c: Connection died.") }
|
||||
assertFalse(relay.line("DA-Relay: mic enabled=1"))
|
||||
assertTrue(file.length() <= 2048 + 200)
|
||||
daemon.close()
|
||||
relay.close()
|
||||
assertEquals("DA-Relay: mic enabled=1", file.readLines().last())
|
||||
}
|
||||
|
||||
@Test fun appendKeepsWhatTheFileHeldAndOverwriteStartsFresh() {
|
||||
val file = folder.newFile("audio.log")
|
||||
file.writeText("== PulseAudio daemon starting\n")
|
||||
CappedLogWriter(file, true, 1024, 2).use { it.line("restarted") }
|
||||
assertEquals(listOf("== PulseAudio daemon starting", "restarted"), file.readLines())
|
||||
CappedLogWriter(file, false, 1024, 2).use { it.line("new session") }
|
||||
assertEquals(listOf("new session"), file.readLines())
|
||||
}
|
||||
|
||||
@Test fun linesAfterCloseAreIgnored() {
|
||||
val file = folder.newFile("app.log")
|
||||
val log = CappedLogWriter(file, false, 1024, 2)
|
||||
log.line("kept")
|
||||
log.close()
|
||||
assertFalse(log.line("late"))
|
||||
log.close()
|
||||
assertEquals(listOf("kept"), file.readLines())
|
||||
}
|
||||
}
|
||||
@@ -32,9 +32,4 @@ class SocNamesTest {
|
||||
assertNull(SocNames.name("SM8975-PRO", ""))
|
||||
assertNull(SocNames.name("Qualcomm SM8975", ""))
|
||||
}
|
||||
@Test fun plainNameNeverGuessesFromThePlatform() {
|
||||
assertEquals("Snapdragon 8 Gen 2 (SM8550)", SocNames.plainName("SM8550", "QTI"))
|
||||
assertEquals("Moorechip CQ7790S", SocNames.plainName("CQ7790S", "Moorechip"))
|
||||
assertEquals("CQ7790S", SocNames.plainName("CQ7790S", ""))
|
||||
}
|
||||
}
|
||||
@@ -48,21 +48,6 @@ class NavTabsTest {
|
||||
assertTrue(NavTabs.isDefault())
|
||||
}
|
||||
|
||||
@Test fun appsFollowsTheHomeAppOnEachChangeAndOtherwiseKeepsTheUsersChoice() {
|
||||
NavTabs.syncHomeApps(ctx, false)
|
||||
assertEquals(TabPlace.HIDDEN, NavTabs.place(state(), "android-apps"))
|
||||
NavTabs.syncHomeApps(ctx, true)
|
||||
assertEquals(TabPlace.BAR, NavTabs.place(state(), "android-apps"))
|
||||
NavTabs.setHidden(ctx, "android-apps", true)
|
||||
NavTabs.syncHomeApps(ctx, true)
|
||||
assertEquals(TabPlace.HIDDEN, NavTabs.place(state(), "android-apps"))
|
||||
NavTabs.syncHomeApps(ctx, false)
|
||||
NavTabs.syncHomeApps(ctx, true)
|
||||
assertEquals(TabPlace.BAR, NavTabs.place(state(), "android-apps"))
|
||||
NavTabs.syncHomeApps(ctx, false)
|
||||
assertEquals(TabPlace.HIDDEN, NavTabs.place(state(), "android-apps"))
|
||||
}
|
||||
|
||||
@Test fun showingMusicOnceKeepsItShownAfterReload() {
|
||||
place("soundtracks", TabPlace.BAR)
|
||||
NavTabs.load(ctx)
|
||||
@@ -234,12 +219,12 @@ class NavTabsTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
val last = NavTabs.listed(state()).last { it !in NavTabs.shelved }
|
||||
val last = navigationKeys(state()).last { it != NavTabs.MORE }
|
||||
compose.onNodeWithTag("tab-row-$last").requestFocus()
|
||||
compose.onNodeWithTag("tab-row-$last").performKeyPress(pad(android.view.KeyEvent.KEYCODE_BUTTON_Y))
|
||||
compose.onNodeWithTag("tab-row-$last").performKeyPress(pad(android.view.KeyEvent.KEYCODE_DPAD_DOWN))
|
||||
compose.onNodeWithTag("tab-row-$last").performKeyPress(pad(android.view.KeyEvent.KEYCODE_BUTTON_Y))
|
||||
compose.runOnIdle { assertTrue(last in NavTabs.shelved) }
|
||||
compose.runOnIdle { assertEquals(last, NavTabs.more(state()).first()) }
|
||||
compose.onNodeWithTag("tab-shown-desktop").performClick()
|
||||
compose.runOnIdle { assertFalse("desktop" in navigationKeys(state())) }
|
||||
compose.onNodeWithTag("tab-shown-setup").performClick()
|
||||
|
||||
|
Before Width: | Height: | Size: 4.1 MiB |
|
After Width: | Height: | Size: 9.0 MiB |
@@ -1,239 +0,0 @@
|
||||
# DroidDeck 0.7.11
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/Droid-Deck/DroidDeck/releases/download/0.7.11/DroidDeck-0.7.11.apk"><img src="https://img.shields.io/badge/Download-DroidDeck%200.7.11%20APK-3DDC84?style=for-the-badge&logo=android&logoColor=white" alt="Download DroidDeck 0.7.11"></a>
|
||||
<a href="https://discord.gg/JRGAvawjsm"><img src="https://img.shields.io/badge/Discord-Join%20us-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Join the DroidDeck Discord"></a>
|
||||
</p>
|
||||
|
||||
|
||||
**DroidDeck is 100% open source. No ads. No subscriptions. No telemetry. No proprietary components. No source withheld.**
|
||||
|
||||
Since 0.7.1: **42 contributors** | **467 pull requests** | **111 of them from 39 outside contributors**. We are so grateful for you all!
|
||||
|
||||
0.7.11 is the convenience store release. **EA, Ubisoft Connect and Rockstar Games** join the Stores tab, with no launchers to install and cloud saves for EA and Ubisoft. Steam, games, the desktop and the Terminal now **run directly on Android with no proot**, which cuts CPU overhead and gives much better 1% lows. **Zero-copy presentation** sends frames straight to the display and brings real HDR. Games on a memory card start about 4X faster. Around those sit a rebuilt Library, a tab bar you can rearrange, Settings with search, a smoother first run, and many smaller conveniences. The details are below.
|
||||
|
||||
### Features
|
||||
|
||||
- **A new foundation.** 0.7.11 reworks the stack that runs your games, from how Linux runs on Android to how frames reach the screen:
|
||||
- **No proot by default.** Steam, Proton games, the desktop and the Terminal run directly on Android, with lower CPU overhead and much better 1% lows. (@xXJSONDeruloXx, @maxjivi05, @K11MCH1, [#2300](https://github.com/Droid-Deck/DroidDeck/pull/2300), [#2522](https://github.com/Droid-Deck/DroidDeck/pull/2522), [#2560](https://github.com/Droid-Deck/DroidDeck/pull/2560), [#3041](https://github.com/Droid-Deck/DroidDeck/pull/3041))
|
||||
- **Zero-copy presentation** With DD-Turnip v0.9.0 or newer, frames reach the display without an extra copy: improving frametimes, frame pacing, and drastically reducing cases of dropped frames. (@maxjivi05, [#2905](https://github.com/Droid-Deck/DroidDeck/pull/2905))
|
||||
- **DroidDeck-Bionic**, a new test build that runs the game itself on Android’s own libc, with lower memory use, better compatibility and, in some games, better performance. (@The412Banner, [#3037](https://github.com/Droid-Deck/DroidDeck/pull/3037))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/new-foundation.png" width="85%" alt="Four charts. Native execution without proot: process launches 4.2 times faster, tar 3.6, recursive listing 2.6, find 2.4, Python stat walk 1.4 and a CPU-only hash 1.1, with Steam starting in 8.7 s instead of 11 to 14 s on a Retroid Pocket Duo. SD card game starts: cold session start plus launch for eight games fell from 37, 122, 19, 65, 177, 192, 50 and 174 seconds on 0.7.1 to 35, 19, 18, 34, 26, 23, 26 and 24 seconds on 0.7.11, an average of 104 s down to 26 s. Zero-copy presentation: compositor work per frame down from 8.25, 3.3 and 4 ms to 1.25, 0.18 and 0.22 ms on three handhelds, and missed refreshes from 229 to 3 in 60 s on one. DroidDeck-Bionic: D3D8 up 50.3%, OpenGL up 17.5%, D3D7 up 10.4%, Vulkan up 3.3%, D3D11 down 1.3%, D3D10 down 1.4%, D3D9 down 3.5% and D3D12 down 7.5%, with about 400 MB less RAM"></p>
|
||||
|
||||
- Added **EA, Ubisoft Connect and Rockstar Games** stores: sign in, browse, download and launch without their launchers. EA and Ubisoft get cloud saves. (@xXJSONDeruloXx, @K11MCH1, @maxjivi05, [#2259](https://github.com/Droid-Deck/DroidDeck/pull/2259), [#2527](https://github.com/Droid-Deck/DroidDeck/pull/2527), [#2521](https://github.com/Droid-Deck/DroidDeck/pull/2521), [#2438](https://github.com/Droid-Deck/DroidDeck/pull/2438), [#2440](https://github.com/Droid-Deck/DroidDeck/pull/2440), [#2486](https://github.com/Droid-Deck/DroidDeck/pull/2486), [#2322](https://github.com/Droid-Deck/DroidDeck/pull/2322), [#2436](https://github.com/Droid-Deck/DroidDeck/pull/2436), [#2450](https://github.com/Droid-Deck/DroidDeck/pull/2450), [#2460](https://github.com/Droid-Deck/DroidDeck/pull/2460), [#2865](https://github.com/Droid-Deck/DroidDeck/pull/2865), [#2824](https://github.com/Droid-Deck/DroidDeck/pull/2824), [#2537](https://github.com/Droid-Deck/DroidDeck/pull/2537), [#2547](https://github.com/Droid-Deck/DroidDeck/pull/2547), [#2590](https://github.com/Droid-Deck/DroidDeck/pull/2590))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/new-stores.gif" width="60%" alt="Touching through the Library’s store chips from left to right: Rockstar with GTA III, San Andreas and Vice City, EA with Battlefield, Dead Space, GRID Legends, Mass Effect, Need for Speed Heat and skate., then Ubisoft with five Assassin’s Creed titles, Immortals Fenyx Rising and Splinter Cell"></p>
|
||||
|
||||
- Added **black frame insertion** for screens of 100 Hz and up: the game runs at half the refresh rate, for example 60 fps on 120 Hz. (@xXJSONDeruloXx, [#2653](https://github.com/Droid-Deck/DroidDeck/pull/2653))
|
||||
|
||||
- **Controller-specific on-screen controls**: kits for the Steam Deck, Steam Controller, Xbox 360, DualShock 4 and DualSense, restyled after the real pads. The editor restores deleted controls, moves and resizes the D-pad as one control and allows sizes above 100%. Layouts keep separate portrait and landscape edits, and the floating overlays get switches for rear buttons and trackpads. (@xXJSONDeruloXx, @maxjivi05, [#2966](https://github.com/Droid-Deck/DroidDeck/pull/2966), [#2988](https://github.com/Droid-Deck/DroidDeck/pull/2988), [#2996](https://github.com/Droid-Deck/DroidDeck/pull/2996), [#3013](https://github.com/Droid-Deck/DroidDeck/pull/3013), [#3019](https://github.com/Droid-Deck/DroidDeck/pull/3019))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/controller-kits.png" width="60%" alt="The portrait on-screen controls for four of the kits: Steam, Xbox 360, DualShock 4 and DualSense, each with its shoulder buttons, D-pad, face buttons, sticks and a bottom row of menu buttons"></p>
|
||||
|
||||
<p align="center"><img src="media/0.7.11/steam-deck-buttons.jpg" width="50%" alt="Steam’s game mode with the restyled Steam Deck on-screen controls: shoulder buttons, a D-pad, A B X Y, rear buttons, trackpads, sticks and the Steam, keyboard and menu buttons along the bottom"></p>
|
||||
|
||||
- Added a **CurseForge source** to the addon browser. DroidDeck installs the CurseForge app, updates addons per game and no longer reads whole files to list them. (@maxjivi05, [#3028](https://github.com/Droid-Deck/DroidDeck/pull/3028), [#2986](https://github.com/Droid-Deck/DroidDeck/pull/2986), [#3042](https://github.com/Droid-Deck/DroidDeck/pull/3042), [#3056](https://github.com/Droid-Deck/DroidDeck/pull/3056), [#3057](https://github.com/Droid-Deck/DroidDeck/pull/3057), [#3060](https://github.com/Droid-Deck/DroidDeck/pull/3060), [#3081](https://github.com/Droid-Deck/DroidDeck/pull/3081))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/curseforge-addons.jpg" width="50%" alt="The addon browser on the CurseForge source, sorted by Popular: Questie, Auctionator, Details! Damage Meter, DBM and others, each with an Install button"></p>
|
||||
|
||||
- The **file manager has a plain text editor**, and the **Updates icon shows the build you’re on**: stable, Preview, a test build or a local build. (@Dantalian-dev, @xXJSONDeruloXx, [#2980](https://github.com/Droid-Deck/DroidDeck/pull/2980), [#3064](https://github.com/Droid-Deck/DroidDeck/pull/3064))
|
||||
|
||||
- **Frontends can launch any DroidDeck game** with Steam IDs, `steam://` and `droiddeck://` links, Daijisho templates, `.url` shortcuts, store game files or `.exe` paths, and store games export as `.epic`, `.gog`, `.xbox` and similar files. (@xXJSONDeruloXx, [#2872](https://github.com/Droid-Deck/DroidDeck/pull/2872))
|
||||
|
||||
- The **Storage manager names every prefix and store game** and can select and remove them, instead of one large “Kept” total, and launcher prefixes and Linux system caches can be removed too. (@xXJSONDeruloXx, [#2565](https://github.com/Droid-Deck/DroidDeck/pull/2565), [#2867](https://github.com/Droid-Deck/DroidDeck/pull/2867))
|
||||
|
||||
- The **Updates tab lists every kept Preview build**, so you can go back to an earlier one, links each build to its pull request and commit, and flags stale test builds. (@xXJSONDeruloXx, [#2624](https://github.com/Droid-Deck/DroidDeck/pull/2624))
|
||||
|
||||
- Components > Proton lists **DroidDeck-Proton prerelease builds under Experimental**, each with Install now, and removes them once they become a stable release. **Install from file** takes zip, 7z and tar archives, for everyone. (@maxjivi05, @FryMcNugget, [#2831](https://github.com/Droid-Deck/DroidDeck/pull/2831), [#2864](https://github.com/Droid-Deck/DroidDeck/pull/2864), [#2889](https://github.com/Droid-Deck/DroidDeck/pull/2889))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/proton-experimental.jpg" width="50%" alt="Components page with DroidDeck-Proton 11-12.8 selected and an Experimental builds section offering a DroidDeck-Bionic 12.8 r34 test build with Install now and an Install from file button"></p>
|
||||
|
||||
- **Steam picks up game folders found in an added library** without pressing Install on each game, and a Games folder that is not a Steam library yet is offered as one. (@maxjivi05, @xXJSONDeruloXx, [#2317](https://github.com/Droid-Deck/DroidDeck/pull/2317), [#2432](https://github.com/Droid-Deck/DroidDeck/pull/2432))
|
||||
|
||||
- Added **per-game frame generation and screen effects**: pick DD-FG 2x, 3x, 4x, Lossless Scaling or none for each game, from the Library or the in-game menu, with a default for the rest. Upscaling and sharpening stay at full screen size with frame generation on. (@EnzoDLofi, @xXJSONDeruloXx, [#2473](https://github.com/Droid-Deck/DroidDeck/pull/2473), [#2472](https://github.com/Droid-Deck/DroidDeck/pull/2472), [#2728](https://github.com/Droid-Deck/DroidDeck/pull/2728))
|
||||
|
||||
- Added **integer scaling** for pixel art and 2D games, and **SMAA** anti-aliasing. Nearest is the new default filter; a filter you already picked stays. (@EnzoDLofi, [#2620](https://github.com/Droid-Deck/DroidDeck/pull/2620), [#2690](https://github.com/Droid-Deck/DroidDeck/pull/2690), [#2708](https://github.com/Droid-Deck/DroidDeck/pull/2708), [#2760](https://github.com/Droid-Deck/DroidDeck/pull/2760))
|
||||
|
||||
- A **pen works as a mouse**: hover moves the pointer, the tip clicks and the side button right-clicks. (@alien2003, [#2625](https://github.com/Droid-Deck/DroidDeck/pull/2625))
|
||||
|
||||
- Added **head tracking for XREAL One, One Pro, One Pro+ and Aura** glasses, with One Pro+ tracking corrected. (@mhaye20, @informalTechCode, [#2532](https://github.com/Droid-Deck/DroidDeck/pull/2532), [#2680](https://github.com/Droid-Deck/DroidDeck/pull/2680))
|
||||
|
||||
- DroidDeck’s **virtual pads reach programs outside Steam**, such as Firefox, Chromium and SDL games. (@kingokksa, [#1593](https://github.com/Droid-Deck/DroidDeck/pull/1593))
|
||||
|
||||
- Added **On-Device Lab builds** for contributors: build and run your own DroidDeck build on the device from the **Dev Harness** tab, which stays hidden until you show it in Edit tabs. (@xXJSONDeruloXx, @KeegantheVeganat0r, @SlicelessBread, @FryMcNugget, [#2375](https://github.com/Droid-Deck/DroidDeck/pull/2375), [#2494](https://github.com/Droid-Deck/DroidDeck/pull/2494), [#2512](https://github.com/Droid-Deck/DroidDeck/pull/2512), [#2667](https://github.com/Droid-Deck/DroidDeck/pull/2667), [#2550](https://github.com/Droid-Deck/DroidDeck/pull/2550), [#2744](https://github.com/Droid-Deck/DroidDeck/pull/2744), [#2862](https://github.com/Droid-Deck/DroidDeck/pull/2862))
|
||||
|
||||
- **Also new:** a **Game resolution** choice for games started without Steam; **per-game Steam Input** choices: Steam’s default, on or off; **Steam Remote Play** with the controller set to Steam Deck or Steam Controller mode and with touch controls; rounded ends on the game page’s **LB and RB keys**; **icon packs**, per-app icons and an Appearance panel on the Apps page; a **Home button** choice, **three presses of Back to exit the launcher** and an optional **Hide launcher from Recents while idle**; **Shuffle** and **Skip boot movie** switches; the game can move to a **clip-on second screen** that reports as an external display; **Quest headsets** get steps for turning off the child-process limit with SideQuest; a **Clear** key in the bottom-screen terminal, which keeps its shell when another app covers that screen; Steam’s first-run defaults show the **battery percentage**, download rates in bytes and the library sorted by recent (@xXJSONDeruloXx, @vinegh4, @2-Shar, @measlesbagel, @DeathKhan, @kingokksa, @maxjivi05, [#2520](https://github.com/Droid-Deck/DroidDeck/pull/2520), [#2407](https://github.com/Droid-Deck/DroidDeck/pull/2407), [#2033](https://github.com/Droid-Deck/DroidDeck/pull/2033), [#2856](https://github.com/Droid-Deck/DroidDeck/pull/2856), [#2207](https://github.com/Droid-Deck/DroidDeck/pull/2207), [#2493](https://github.com/Droid-Deck/DroidDeck/pull/2493), [#1599](https://github.com/Droid-Deck/DroidDeck/pull/1599), [#2579](https://github.com/Droid-Deck/DroidDeck/pull/2579), [#2462](https://github.com/Droid-Deck/DroidDeck/pull/2462), [#2577](https://github.com/Droid-Deck/DroidDeck/pull/2577), [#2350](https://github.com/Droid-Deck/DroidDeck/pull/2350), [#2306](https://github.com/Droid-Deck/DroidDeck/pull/2306), [#2368](https://github.com/Droid-Deck/DroidDeck/pull/2368), [#2366](https://github.com/Droid-Deck/DroidDeck/pull/2366), [#2599](https://github.com/Droid-Deck/DroidDeck/pull/2599))
|
||||
|
||||
### Design and organization
|
||||
|
||||
DroidDeck is easier to find your way around: tabs you arrange yourself, a Library that puts installed games first, and one home for every setting.
|
||||
|
||||
- **One editor to show, hide and reorder** the launcher tabs, the Library’s stores and the in-game menu pages. **Edit tabs** reorders with drag handles and shelves tabs under **More** or hides them, **Manage stores** does the same for store chips, Favorites and Hidden, and the in-game menu gets **Arrange pages** and its own **More** tab. On a controller, grab a row with Y and move it with the D-pad. The in-game menu can also be **resized**, and the width is kept. (@xXJSONDeruloXx, @FX192, [#2569](https://github.com/Droid-Deck/DroidDeck/pull/2569), [#2627](https://github.com/Droid-Deck/DroidDeck/pull/2627), [#2791](https://github.com/Droid-Deck/DroidDeck/pull/2791), [#2798](https://github.com/Droid-Deck/DroidDeck/pull/2798), [#2809](https://github.com/Droid-Deck/DroidDeck/pull/2809), [#2811](https://github.com/Droid-Deck/DroidDeck/pull/2811), [#2812](https://github.com/Droid-Deck/DroidDeck/pull/2812), [#2558](https://github.com/Droid-Deck/DroidDeck/pull/2558), [#2894](https://github.com/Droid-Deck/DroidDeck/pull/2894), [#2897](https://github.com/Droid-Deck/DroidDeck/pull/2897), [#2920](https://github.com/Droid-Deck/DroidDeck/pull/2920), [#2989](https://github.com/Droid-Deck/DroidDeck/pull/2989), [#3084](https://github.com/Droid-Deck/DroidDeck/pull/3084), [#3080](https://github.com/Droid-Deck/DroidDeck/pull/3080))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/edit-tabs.jpg" width="19%" alt="The launcher’s Edit tabs sheet in portrait, with a drag handle and a switch for Steam, Desktop, Library, Downloads, Settings, Updates and Stores, then a More divider above Boot movies, Decky, Apps and Syncthing"> <img src="media/0.7.11/manage-stores.jpg" width="38%" alt="The Library’s Manage stores sheet with a drag handle and a switch for Favorites, Battle.net, Xbox, Rockstar Games, EA, Ubisoft Connect and itch.io, with a Grab Y hint on the Xbox row being moved"> <img src="media/0.7.11/session-menu-arrange.jpg" width="38%" alt="The widened in-game menu showing Arrange pages with Performance HUD, Effects, Games and Session above a More divider and VR below it"></p>
|
||||
|
||||
- **The Library is rebuilt.** Installed games come first, and games you own but haven’t installed fold into one **Not installed** row linked to their store. It gets the Stores tab’s chips and toolbar and a **Custom games** tab. (@xXJSONDeruloXx, @FX192, [#2894](https://github.com/Droid-Deck/DroidDeck/pull/2894), [#2897](https://github.com/Droid-Deck/DroidDeck/pull/2897), [#2920](https://github.com/Droid-Deck/DroidDeck/pull/2920))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/library-installed.jpg" width="50%" alt="The Library with store chips (All, Steam, Epic, EA, Xbox, GOG, Rockstar, itch.io), a toolbar, an Installed row of Steam, EA, Ubisoft and GOG games with their sizes, and a Not installed row of 746 games below"></p>
|
||||
|
||||
- **Settings are rebuilt.** Setup is now **Settings**, Performance has its own page, every setting has one home, and search finds settings by everyday words such as fps, logs or ram. Storage, Syncthing and Downloads are tabs of their own. (@xXJSONDeruloXx, [#2569](https://github.com/Droid-Deck/DroidDeck/pull/2569), [#2627](https://github.com/Droid-Deck/DroidDeck/pull/2627), [#2791](https://github.com/Droid-Deck/DroidDeck/pull/2791), [#2798](https://github.com/Droid-Deck/DroidDeck/pull/2798), [#2809](https://github.com/Droid-Deck/DroidDeck/pull/2809), [#2811](https://github.com/Droid-Deck/DroidDeck/pull/2811), [#2812](https://github.com/Droid-Deck/DroidDeck/pull/2812), [#2558](https://github.com/Droid-Deck/DroidDeck/pull/2558))
|
||||
|
||||
- Added **Favorites** with a heart on the game page, a **Hidden** tab synced with Steam, and a **Soundtracks tab with a music player** with favorites, collections and Android’s media controls. (@FX192, [#2613](https://github.com/Droid-Deck/DroidDeck/pull/2613), [#2803](https://github.com/Droid-Deck/DroidDeck/pull/2803), [#2389](https://github.com/Droid-Deck/DroidDeck/pull/2389), [#2835](https://github.com/Droid-Deck/DroidDeck/pull/2835))
|
||||
|
||||
- **Decky and Boot movies get their own tabs**, shelved under More. Decky has Installed, **Store** and From ZIP pages; the store lists plugins by downloads with search, checks each download’s SHA-256 and updates what you have installed. (@xXJSONDeruloXx, [#3068](https://github.com/Droid-Deck/DroidDeck/pull/3068))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/more-tab.jpg" width="45%" alt="The More page with Storage, Syncthing, Decky, Boot movies, Music and Dev Harness, and the Updates tab’s L icon for a local build on the rail"> <img src="media/0.7.11/decky-store.jpg" width="45%" alt="Decky’s Store page with a plugin search box and SteamGridDB and CSS Loader, each with an Install button"></p>
|
||||
|
||||
- **One screen picker for the bottom screen**: a dropdown next to X switches between the DroidDeck menu and the panels, replacing the D button and the Second screen tab. Every panel gets the swap button, and the menu’s tabs get Steam Deck style icons. (@xXJSONDeruloXx, [#2912](https://github.com/Droid-Deck/DroidDeck/pull/2912), [#2900](https://github.com/Droid-Deck/DroidDeck/pull/2900))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/screen-picker.jpg" width="40%" alt="The bottom-screen picker open on a Dashboard, listing DroidDeck menu, Keyboard + trackpad, Terminal, Profile controls and Dashboard"></p>
|
||||
|
||||
- **The in-game menu works better on a dual-screen handheld.** It is now a bottom-screen mode, and a docked menu is touch only so the controller stays with the game, unless you turn on **Physical controls can use bottom screen**. **Dual screen sessions** can be set from the Display page, and Pause shows its screen at once, with a real last frame under Zero-copy. (@xXJSONDeruloXx, [#3001](https://github.com/Droid-Deck/DroidDeck/pull/3001), [#3080](https://github.com/Droid-Deck/DroidDeck/pull/3080))
|
||||
|
||||
- Added the **True black** theme for OLED screens with a highlight color you pick, and a **Custom theme** where you set every color. Inner gamer works with launcher animations off. (@DeathKhan, @EnzoDLofi, [#2541](https://github.com/Droid-Deck/DroidDeck/pull/2541), [#2542](https://github.com/Droid-Deck/DroidDeck/pull/2542), [#2850](https://github.com/Droid-Deck/DroidDeck/pull/2850))
|
||||
|
||||
- The **DroidDeck HUD** gets a switch and row order for every reading, an **estimated battery runtime** and a **long press to collapse or expand**, and locking is optional. **Hold the GPU at its top clock** can be switched from the in-game menu and applies right away, and a new switch shows the HUD only while a game runs. (@kingokksa, @EnzoDLofi, @xXJSONDeruloXx, @maxjivi05, [#2454](https://github.com/Droid-Deck/DroidDeck/pull/2454), [#2573](https://github.com/Droid-Deck/DroidDeck/pull/2573), [#2723](https://github.com/Droid-Deck/DroidDeck/pull/2723), [#2882](https://github.com/Droid-Deck/DroidDeck/pull/2882), [#2970](https://github.com/Droid-Deck/DroidDeck/pull/2970))
|
||||
|
||||
- **Launcher controller and gesture settings:** LT and RT step between main tabs on every layout, a light **haptic tick** follows controller navigation, and **Swipe between pages** can be turned off, with edge swipes in landscape left to Android. (@2-Shar, @xXJSONDeruloXx, [#3035](https://github.com/Droid-Deck/DroidDeck/pull/3035), [#3039](https://github.com/Droid-Deck/DroidDeck/pull/3039), [#2993](https://github.com/Droid-Deck/DroidDeck/pull/2993), [#2924](https://github.com/Droid-Deck/DroidDeck/pull/2924))
|
||||
|
||||
- **A smoother first run.** The runtime, DroidDeck-Proton and Steam’s package cache download in the background, one setup card and a progress chip show every step, and the first Play no longer waits on Steam, which already has its client update applied. Bluetooth is asked from the setup card, and Steam starts with big art and the bouncing logo screensaver. (@xXJSONDeruloXx, [#3091](https://github.com/Droid-Deck/DroidDeck/pull/3091), [#3114](https://github.com/Droid-Deck/DroidDeck/pull/3114), [#3087](https://github.com/Droid-Deck/DroidDeck/pull/3087), [#3152](https://github.com/Droid-Deck/DroidDeck/pull/3152))
|
||||
|
||||
### Improvements
|
||||
|
||||
- **Much faster games on a memory card.** DroidDeck no longer walks every game folder on the card at each session start and launch. A cold session start that took 7 to 170 s on 0.7.1 now takes 7 to 9 s, and across eight games cold start plus launch fell from an average of 104 s to 25 s. Steam’s file checks on the card are answered from a cache, so a 3,800-file install went from 261 s to 183.5 s. Reserving space, verifying and installing no longer drop to a slow path after one unsupported call. (@maxjivi05, [#2533](https://github.com/Droid-Deck/DroidDeck/pull/2533), [#2881](https://github.com/Droid-Deck/DroidDeck/pull/2881), [#2553](https://github.com/Droid-Deck/DroidDeck/pull/2553), [#2509](https://github.com/Droid-Deck/DroidDeck/pull/2509), [#2379](https://github.com/Droid-Deck/DroidDeck/pull/2379), [#2504](https://github.com/Droid-Deck/DroidDeck/pull/2504))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/sd-card-game-start.png" width="45%" alt="Bar chart of a cold session start plus game launch from the SD card for eight games, average of two runs: 37, 122, 19, 65, 177, 192, 50 and 174 seconds on 0.7.1, 35, 19, 18, 34, 26, 23, 26 and 24 seconds on 0.7.11"> <img src="media/0.7.11/sd-card-install-steps.png" width="45%" alt="Bar chart of SD card library steps before and after: reserving space 68.9 to 27.5 seconds, commit 150.9 to 104.0, whole install 261.0 to 183.5, move from internal to card 156.8 to 121.7, reserving space for a second program 33.9 to 12.5, and uninstall 12.3 to 9.2"></p>
|
||||
|
||||
- **Memory is managed automatically.** Sessions reclaim memory from what Android actually reports, react to a fast fall on large-RAM devices before Android kills the session, and no longer compress Steam after every game start. This fixes sessions killed with gigabytes free, such as a 15 GB AYN Thor Max with 5.3 GB available, and 5 to 10 s freezes every 30 s on 11 to 12 GB devices. The four manual memory settings under Performance are removed. (@maxjivi05, @xXJSONDeruloXx, [#2853](https://github.com/Droid-Deck/DroidDeck/pull/2853), [#2382](https://github.com/Droid-Deck/DroidDeck/pull/2382), [#2754](https://github.com/Droid-Deck/DroidDeck/pull/2754), [#2335](https://github.com/Droid-Deck/DroidDeck/pull/2335), [#2347](https://github.com/Droid-Deck/DroidDeck/pull/2347), [#2758](https://github.com/Droid-Deck/DroidDeck/pull/2758))
|
||||
- **Steam’s shader pre-caching is on by default**, so games get Valve’s prebuilt shaders and stutter less on first play. (@xXJSONDeruloXx, [#2888](https://github.com/Droid-Deck/DroidDeck/pull/2888))
|
||||
- **Landscape and portrait resolutions are set separately**, each able to follow the other, and an **Avoid notch** switch in Steam’s Display options keeps the picture out of the camera cutout. (@FX192, @The412Banner, [#2990](https://github.com/Droid-Deck/DroidDeck/pull/2990), [#2983](https://github.com/Droid-Deck/DroidDeck/pull/2983), [#3124](https://github.com/Droid-Deck/DroidDeck/pull/3124))
|
||||
|
||||
<p align="center"><img src="media/0.7.11/display-resolutions.jpg" width="50%" alt="Steam Settings > Display with a Landscape resolution of 1280×720 and a Portrait resolution that follows landscape at 720×1280"></p>
|
||||
|
||||
- **Play Protect installs DroidDeck without a warning**: the app targets Android 14, and the shortcut accessibility service moved into an optional companion. (@xXJSONDeruloXx, [#2683](https://github.com/Droid-Deck/DroidDeck/pull/2683), [#2654](https://github.com/Droid-Deck/DroidDeck/pull/2654), [#2764](https://github.com/Droid-Deck/DroidDeck/pull/2764), [#2774](https://github.com/Droid-Deck/DroidDeck/pull/2774))
|
||||
- **Cooler steady games:** a game holding 30 fps or more for 3 s moves off the fastest cores, and the busiest game threads get a boost on every Snapdragon 8 Elite phone, not only the Odin 3. (@xXJSONDeruloXx, @Tapuuk, @xlulx, [#2572](https://github.com/Droid-Deck/DroidDeck/pull/2572), [#2608](https://github.com/Droid-Deck/DroidDeck/pull/2608), [#2914](https://github.com/Droid-Deck/DroidDeck/pull/2914))
|
||||
- **Turnip system-memory rendering** now reaches games and apps, not only the Steam client, and Steam’s interface uses GPU compositing where the driver supports it. (@maxjivi05, [#2338](https://github.com/Droid-Deck/DroidDeck/pull/2338), [#2660](https://github.com/Droid-Deck/DroidDeck/pull/2660))
|
||||
- **Mali:** MaliBridge 0.5.5.4, with the RE6 benchmark at about 25 fps on a Galaxy Tab S10+ and fewer hangs; DXVK runs on Mali GPUs without dual-source blending; and the x86-64 Steam client starts on Venus. (@ASEbrahim, @maxjivi05, [#2704](https://github.com/Droid-Deck/DroidDeck/pull/2704), [#2293](https://github.com/Droid-Deck/DroidDeck/pull/2293), [#2601](https://github.com/Droid-Deck/DroidDeck/pull/2601))
|
||||
- **Programs that need no proot.** Without proot, AppImages, Electron and Chromium apps, Flatpaks, Go programs, scripts without a shebang line and package updates that set file capabilities start as they do with proot, and x86 programs under FEX see the session’s identity, Unix sockets, locales and GL libraries. FEX follows the latest release, and Plasma and Firefox draw on the system PowerVR driver. (@maxjivi05, @The412Banner, @JMLambo, [#3096](https://github.com/Droid-Deck/DroidDeck/pull/3096), [#3097](https://github.com/Droid-Deck/DroidDeck/pull/3097), [#3098](https://github.com/Droid-Deck/DroidDeck/pull/3098), [#3099](https://github.com/Droid-Deck/DroidDeck/pull/3099), [#3103](https://github.com/Droid-Deck/DroidDeck/pull/3103), [#3104](https://github.com/Droid-Deck/DroidDeck/pull/3104), [#3106](https://github.com/Droid-Deck/DroidDeck/pull/3106), [#3108](https://github.com/Droid-Deck/DroidDeck/pull/3108), [#3112](https://github.com/Droid-Deck/DroidDeck/pull/3112), [#3120](https://github.com/Droid-Deck/DroidDeck/pull/3120), [#3121](https://github.com/Droid-Deck/DroidDeck/pull/3121), [#3147](https://github.com/Droid-Deck/DroidDeck/pull/3147), [#3151](https://github.com/Droid-Deck/DroidDeck/pull/3151), [#3154](https://github.com/Droid-Deck/DroidDeck/pull/3154), [#3155](https://github.com/Droid-Deck/DroidDeck/pull/3155), [#3157](https://github.com/Droid-Deck/DroidDeck/pull/3157), [#3158](https://github.com/Droid-Deck/DroidDeck/pull/3158), [#3159](https://github.com/Droid-Deck/DroidDeck/pull/3159), [#3161](https://github.com/Droid-Deck/DroidDeck/pull/3161), [#3162](https://github.com/Droid-Deck/DroidDeck/pull/3162), [#3171](https://github.com/Droid-Deck/DroidDeck/pull/3171), [#3077](https://github.com/Droid-Deck/DroidDeck/pull/3077), [#3059](https://github.com/Droid-Deck/DroidDeck/pull/3059), [#3054](https://github.com/Droid-Deck/DroidDeck/pull/3054), [#3055](https://github.com/Droid-Deck/DroidDeck/pull/3055), [#3074](https://github.com/Droid-Deck/DroidDeck/pull/3074), [#3094](https://github.com/Droid-Deck/DroidDeck/pull/3094), [#3105](https://github.com/Droid-Deck/DroidDeck/pull/3105), [#3110](https://github.com/Droid-Deck/DroidDeck/pull/3110), [#3070](https://github.com/Droid-Deck/DroidDeck/pull/3070), [#3052](https://github.com/Droid-Deck/DroidDeck/pull/3052), [#3040](https://github.com/Droid-Deck/DroidDeck/pull/3040), [#3020](https://github.com/Droid-Deck/DroidDeck/pull/3020), [#3026](https://github.com/Droid-Deck/DroidDeck/pull/3026), [#2836](https://github.com/Droid-Deck/DroidDeck/pull/2836), [#2839](https://github.com/Droid-Deck/DroidDeck/pull/2839))
|
||||
- **A first launch with nothing to unpack:** setup applies Steam’s client update itself, so the first Steam start skips about 30 s of unpacking and its restart, and a failed package claim now fails the install instead of leaving it half done. (@xXJSONDeruloXx, [#3152](https://github.com/Droid-Deck/DroidDeck/pull/3152), [#3145](https://github.com/Droid-Deck/DroidDeck/pull/3145), [#3149](https://github.com/Droid-Deck/DroidDeck/pull/3149))
|
||||
- **Pressing Play on a launcher-run game** shows Starting until it launches, instead of sitting on Play for 12 to 24 s. (@maxjivi05, [#2586](https://github.com/Droid-Deck/DroidDeck/pull/2586))
|
||||
- **A session that fails to start says why**, and stopping a session while it starts undoes the start-up work. (@Tapuuk, [#2841](https://github.com/Droid-Deck/DroidDeck/pull/2841), [#2840](https://github.com/Droid-Deck/DroidDeck/pull/2840))
|
||||
- **Battle.net** keeps the launch behavior you chose, shows its own reason when it refuses a game folder, lists its games under the runtime path, and a download that stops moving ends with Retry. (@xXJSONDeruloXx, @visail, @maxjivi05, [#2750](https://github.com/Droid-Deck/DroidDeck/pull/2750), [#1661](https://github.com/Droid-Deck/DroidDeck/pull/1661), [#2602](https://github.com/Droid-Deck/DroidDeck/pull/2602), [#3188](https://github.com/Droid-Deck/DroidDeck/pull/3188))
|
||||
- **On-screen stick knobs redraw at about 30 fps** instead of on every move, and **Gamescope draws its cursor by default**. (@Tapuuk, @xXJSONDeruloXx, [#2842](https://github.com/Droid-Deck/DroidDeck/pull/2842), [#3187](https://github.com/Droid-Deck/DroidDeck/pull/3187))
|
||||
- **The agent’s setup install retries** on transient source errors and no longer accepts a held-back package. (@xXJSONDeruloXx, [#2904](https://github.com/Droid-Deck/DroidDeck/pull/2904))
|
||||
- **Translations** cover the missing strings, including the input settings, in every language. (@kingokksa, [#2556](https://github.com/Droid-Deck/DroidDeck/pull/2556))
|
||||
- **Clearer logs** for bug reports: runtime install failures, GPU driver lines, GOG cloud sync failures, device restarts, guest start steps, errors from Windows programs started from the desktop, GPU clock holds, and RPCS3’s own log in Share logs. (@maxjivi05, @The412Banner, @xXJSONDeruloXx, [#2591](https://github.com/Droid-Deck/DroidDeck/pull/2591), [#2593](https://github.com/Droid-Deck/DroidDeck/pull/2593), [#2596](https://github.com/Droid-Deck/DroidDeck/pull/2596), [#2752](https://github.com/Droid-Deck/DroidDeck/pull/2752), [#2502](https://github.com/Droid-Deck/DroidDeck/pull/2502), [#2695](https://github.com/Droid-Deck/DroidDeck/pull/2695), [#2343](https://github.com/Droid-Deck/DroidDeck/pull/2343), [#2893](https://github.com/Droid-Deck/DroidDeck/pull/2893), [#3130](https://github.com/Droid-Deck/DroidDeck/pull/3130))
|
||||
- Building and testing: local builds work on x86_64 Linux, source builds start on storage without hard links, test tools for pens and two-screen phones, preview renders of the Library and in-game menu, and steadier CI. (@xXJSONDeruloXx, @maxjivi05, @alien2003, @Tapuuk, [#2807](https://github.com/Droid-Deck/DroidDeck/pull/2807), [#2639](https://github.com/Droid-Deck/DroidDeck/pull/2639), [#2628](https://github.com/Droid-Deck/DroidDeck/pull/2628), [#2844](https://github.com/Droid-Deck/DroidDeck/pull/2844), [#2469](https://github.com/Droid-Deck/DroidDeck/pull/2469), [#2483](https://github.com/Droid-Deck/DroidDeck/pull/2483), [#2672](https://github.com/Droid-Deck/DroidDeck/pull/2672), [#2635](https://github.com/Droid-Deck/DroidDeck/pull/2635), [#2908](https://github.com/Droid-Deck/DroidDeck/pull/2908), [#2899](https://github.com/Droid-Deck/DroidDeck/pull/2899), [#2938](https://github.com/Droid-Deck/DroidDeck/pull/2938))
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed **games failing to start since 0.7.1** in ARM64 prefixes, such as Unreal Engine games asking for the Visual C++ arm64 redistributable and Red Dead Redemption 2 missing `vulkan-1.dll`. (@xXJSONDeruloXx, @maxjivi05, [#2442](https://github.com/Droid-Deck/DroidDeck/pull/2442), [#2647](https://github.com/Droid-Deck/DroidDeck/pull/2647))
|
||||
- Fixed **Windows games on Android shared storage** crashing at launch, and 32-bit games such as Spore, Terraria and Borderlands 2 hanging at launch after that fix. (@maxjivi05, @xXJSONDeruloXx, [#2594](https://github.com/Droid-Deck/DroidDeck/pull/2594), [#2706](https://github.com/Droid-Deck/DroidDeck/pull/2706))
|
||||
- Fixed **digital triggers** on handhelds such as the AYN Thor no longer responding since 0.7.0, **right sticks reported on other axes** never reaching the game, and the app closing when a controller disconnects mid-press. (@maxjivi05, [#2291](https://github.com/Droid-Deck/DroidDeck/pull/2291), [#2333](https://github.com/Droid-Deck/DroidDeck/pull/2333), [#2369](https://github.com/Droid-Deck/DroidDeck/pull/2369))
|
||||
- Fixed **driver picks on non-Adreno and smaller Adreno GPUs**: Auto no longer gives Adreno 710, 720 and 722 a display driver that finds no GPU, gives Xclipse 540 a working driver pair instead of a black Steam at about 1 fps, never loads an Adreno-only driver elsewhere, lets Auto-installed display drivers fall back to the system driver, and handles the Mali bridge switch correctly. (@maxjivi05, @unixenon, @The412Banner, [#2356](https://github.com/Droid-Deck/DroidDeck/pull/2356), [#2337](https://github.com/Droid-Deck/DroidDeck/pull/2337), [#2588](https://github.com/Droid-Deck/DroidDeck/pull/2588), [#2406](https://github.com/Droid-Deck/DroidDeck/pull/2406), [#2684](https://github.com/Droid-Deck/DroidDeck/pull/2684), [#2977](https://github.com/Droid-Deck/DroidDeck/pull/2977))
|
||||
- Fixed **Steam flickering on the Mali bridge** and **stalling on Venus** with a Dimensity 9300. (@rainleee, @The412Banner, @xXJSONDeruloXx, [#2506](https://github.com/Droid-Deck/DroidDeck/pull/2506), [#2721](https://github.com/Droid-Deck/DroidDeck/pull/2721), [#2441](https://github.com/Droid-Deck/DroidDeck/pull/2441))
|
||||
- Fixed **Epic’s Install** failing for everyone after Epic stopped publishing its Linux launcher download, and Epic now says which launcher installs a third-party game. (@maxjivi05, [#2281](https://github.com/Droid-Deck/DroidDeck/pull/2281), [#2344](https://github.com/Droid-Deck/DroidDeck/pull/2344))
|
||||
- Fixed **Game Pass downloads and launches** failing with HTTP 401, and Xbox games reporting the account service unavailable. (@maxjivi05, @Zeratullo, [#2598](https://github.com/Droid-Deck/DroidDeck/pull/2598), [#2751](https://github.com/Droid-Deck/DroidDeck/pull/2751))
|
||||
- Fixed **Xbox games that use PlayFab Game Saves**, such as Forza Horizon 6, stopping at “Initialization Failed”, and **older Xbox games** not installing: they now install through Windows Update or from their content boxes, with Nexus backend 0.2.15 and DLC mounting. Xbox sign-in also looks like the other stores’. (@l4nr3, @xXJSONDeruloXx, @The412Banner, [#2662](https://github.com/Droid-Deck/DroidDeck/pull/2662), [#2718](https://github.com/Droid-Deck/DroidDeck/pull/2718), [#2825](https://github.com/Droid-Deck/DroidDeck/pull/2825), [#2851](https://github.com/Droid-Deck/DroidDeck/pull/2851), [#2696](https://github.com/Droid-Deck/DroidDeck/pull/2696))
|
||||
- Fixed **game-specific crashes**: Death Stranding running out of memory on 39-bit kernels, Godot games with Sentry or UI Automation crashing, Final Fantasy VII Rebirth and Kingdom Come: Deliverance II at the D3D12 level they need, a game’s own DLL overrides replacing DroidDeck’s, and Call of Duty: Black Ops II starting through Steam. (@KeegantheVeganat0r, @Kobtul, @maxjivi05, @xXJSONDeruloXx, @Drik0, [#2641](https://github.com/Droid-Deck/DroidDeck/pull/2641), [#2644](https://github.com/Droid-Deck/DroidDeck/pull/2644), [#2605](https://github.com/Droid-Deck/DroidDeck/pull/2605), [#2595](https://github.com/Droid-Deck/DroidDeck/pull/2595), [#2289](https://github.com/Droid-Deck/DroidDeck/pull/2289), [#2787](https://github.com/Droid-Deck/DroidDeck/pull/2787), [#2332](https://github.com/Droid-Deck/DroidDeck/pull/2332), [#2892](https://github.com/Droid-Deck/DroidDeck/pull/2892))
|
||||
- Fixed **the Desktop session**: it draws again and Sunshine can capture it, Windows games started from Steam no longer close after a second, Flatpak apps get the GPU and working file dialogs, and removable drives show in Dolphin. (@xXJSONDeruloXx, @maxjivi05, [#2780](https://github.com/Droid-Deck/DroidDeck/pull/2780), [#2446](https://github.com/Droid-Deck/DroidDeck/pull/2446), [#2597](https://github.com/Droid-Deck/DroidDeck/pull/2597), [#2699](https://github.com/Droid-Deck/DroidDeck/pull/2699), [#2671](https://github.com/Droid-Deck/DroidDeck/pull/2671), [#3190](https://github.com/Droid-Deck/DroidDeck/pull/3190))
|
||||
- Fixed **audio not coming back** after a long sleep, and **the HUD and game clocks** reading wrong after sleep and wake. (@maxjivi05, @xXJSONDeruloXx, [#2396](https://github.com/Droid-Deck/DroidDeck/pull/2396), [#2821](https://github.com/Droid-Deck/DroidDeck/pull/2821), [#2393](https://github.com/Droid-Deck/DroidDeck/pull/2393), [#2552](https://github.com/Droid-Deck/DroidDeck/pull/2552))
|
||||
- Fixed **Epic games that check for Epic’s launcher**, such as GTA V, quitting at start (they now also get the Rockstar SDK they need), and the **itch.io browse grid** staying empty on the default filters. (@K11MCH1, @FX192, [#2932](https://github.com/Droid-Deck/DroidDeck/pull/2932), [#2918](https://github.com/Droid-Deck/DroidDeck/pull/2918))
|
||||
- Fixed **other apps reaching DroidDeck’s private folders** through the system folder picker. (@Tapuuk, [#2846](https://github.com/Droid-Deck/DroidDeck/pull/2846))
|
||||
- Fixed **input and controls**: the on-screen controls editor drawing layouts squashed and overlapping, and saving a Steam touch layout for a game with no touch config; touch stopping after overlapping touches, taps clicking while an on-screen mouse button shows, and System Back turning into a right-click; a USB mouse in REDMAGIC cast mode stopping at the screen edge, held keys dropping when pointer capture ends, and rumble that kept going after a crash; controller navigation on the Apps page, B closing the page behind the on-screen keyboard, and the file manager toolbar after a drive change; a DualShock or DualSense picked mid-session not reattaching to Steam; SDL 3 games and apps that reload libudev crashing on the virtual pads, hardware Escape reaching Back late, and the nested mouse not moving with touch Disabled; launcher focus ring and navigation glitches, including the game page’s main action and tabs (@maxjivi05, @kingokksa, @OmarAlTaki1, @KvFxKaido, @zdennisz, @Tapuuk, @DeathKhan, @Dantalian-dev, @xXJSONDeruloXx, @Necomer0920, @0use-TE, @The412Banner, @xlulx, @2-Shar, [#2339](https://github.com/Droid-Deck/DroidDeck/pull/2339), [#2783](https://github.com/Droid-Deck/DroidDeck/pull/2783), [#2580](https://github.com/Droid-Deck/DroidDeck/pull/2580), [#2528](https://github.com/Droid-Deck/DroidDeck/pull/2528), [#2465](https://github.com/Droid-Deck/DroidDeck/pull/2465), [#2323](https://github.com/Droid-Deck/DroidDeck/pull/2323), [#2298](https://github.com/Droid-Deck/DroidDeck/pull/2298), [#2666](https://github.com/Droid-Deck/DroidDeck/pull/2666), [#2779](https://github.com/Droid-Deck/DroidDeck/pull/2779), [#2614](https://github.com/Droid-Deck/DroidDeck/pull/2614), [#2492](https://github.com/Droid-Deck/DroidDeck/pull/2492), [#2499](https://github.com/Droid-Deck/DroidDeck/pull/2499), [#2534](https://github.com/Droid-Deck/DroidDeck/pull/2534), [#2544](https://github.com/Droid-Deck/DroidDeck/pull/2544), [#2545](https://github.com/Droid-Deck/DroidDeck/pull/2545), [#2543](https://github.com/Droid-Deck/DroidDeck/pull/2543), [#2498](https://github.com/Droid-Deck/DroidDeck/pull/2498), [#2564](https://github.com/Droid-Deck/DroidDeck/pull/2564), [#2567](https://github.com/Droid-Deck/DroidDeck/pull/2567), [#2963](https://github.com/Droid-Deck/DroidDeck/pull/2963), [#2915](https://github.com/Droid-Deck/DroidDeck/pull/2915), [#3180](https://github.com/Droid-Deck/DroidDeck/pull/3180), [#2976](https://github.com/Droid-Deck/DroidDeck/pull/2976), [#2902](https://github.com/Droid-Deck/DroidDeck/pull/2902), [#3008](https://github.com/Droid-Deck/DroidDeck/pull/3008), [#2961](https://github.com/Droid-Deck/DroidDeck/pull/2961), [#3036](https://github.com/Droid-Deck/DroidDeck/pull/3036), [#3039](https://github.com/Droid-Deck/DroidDeck/pull/3039), [#2906](https://github.com/Droid-Deck/DroidDeck/pull/2906), [#2909](https://github.com/Droid-Deck/DroidDeck/pull/2909), [#3082](https://github.com/Droid-Deck/DroidDeck/pull/3082), [#2994](https://github.com/Droid-Deck/DroidDeck/pull/2994), [#2973](https://github.com/Droid-Deck/DroidDeck/pull/2973), [#2929](https://github.com/Droid-Deck/DroidDeck/pull/2929), [#3017](https://github.com/Droid-Deck/DroidDeck/pull/3017))
|
||||
- Fixed **Steam, stores and the Library**: x86-64 Steam store shortcuts that closed within a second, x86-64 Linux games missing libraries under FEX, and 32-bit games such as Left 4 Dead 2 aborting; Steam coming back empty after aborting a black-screen game, and an OpenGL game going black after a level; Return to DroidDeck ending the session at Steam’s install-script step, and Steam’s saved scaling mode not applying; Steam’s frame limits following Game Mode’s FPS override instead of the screen; cloud saves missing for a Steam game launched as an added game; GOG installs hanging on Finishing for games with thousands of files; GOG space checks and cloud saves, an Epic sign-in loop, EA touchup retries, Xbox bundles, and Battle.net games vanishing after a native session; Steam-install and Add game picker oddities, plus a warning when game storage is FAT32; launch requests now handled one at a time, and FEX or AppImage extraction hanging at start-up; Remote Play failing to connect with the virtual pads present, and fullscreen streams cropped to a corner (@maxjivi05, @xXJSONDeruloXx, @The412Banner, @KvFxKaido, @moronigranja, @zdennisz, @visail, @guohaomin1995-dev, [#2336](https://github.com/Droid-Deck/DroidDeck/pull/2336), [#2334](https://github.com/Droid-Deck/DroidDeck/pull/2334), [#2484](https://github.com/Droid-Deck/DroidDeck/pull/2484), [#2592](https://github.com/Droid-Deck/DroidDeck/pull/2592), [#2426](https://github.com/Droid-Deck/DroidDeck/pull/2426), [#2600](https://github.com/Droid-Deck/DroidDeck/pull/2600), [#2562](https://github.com/Droid-Deck/DroidDeck/pull/2562), [#2732](https://github.com/Droid-Deck/DroidDeck/pull/2732), [#2681](https://github.com/Droid-Deck/DroidDeck/pull/2681), [#2717](https://github.com/Droid-Deck/DroidDeck/pull/2717), [#2463](https://github.com/Droid-Deck/DroidDeck/pull/2463), [#2367](https://github.com/Droid-Deck/DroidDeck/pull/2367), [#2419](https://github.com/Droid-Deck/DroidDeck/pull/2419), [#2720](https://github.com/Droid-Deck/DroidDeck/pull/2720), [#3025](https://github.com/Droid-Deck/DroidDeck/pull/3025), [#2421](https://github.com/Droid-Deck/DroidDeck/pull/2421), [#2505](https://github.com/Droid-Deck/DroidDeck/pull/2505), [#3172](https://github.com/Droid-Deck/DroidDeck/pull/3172), [#3175](https://github.com/Droid-Deck/DroidDeck/pull/3175), [#3003](https://github.com/Droid-Deck/DroidDeck/pull/3003), [#3029](https://github.com/Droid-Deck/DroidDeck/pull/3029), [#3148](https://github.com/Droid-Deck/DroidDeck/pull/3148), [#3075](https://github.com/Droid-Deck/DroidDeck/pull/3075), [#2742](https://github.com/Droid-Deck/DroidDeck/pull/2742), [#2411](https://github.com/Droid-Deck/DroidDeck/pull/2411), [#2818](https://github.com/Droid-Deck/DroidDeck/pull/2818), [#3177](https://github.com/Droid-Deck/DroidDeck/pull/3177), [#3123](https://github.com/Droid-Deck/DroidDeck/pull/3123), [#2883](https://github.com/Droid-Deck/DroidDeck/pull/2883), [#3044](https://github.com/Droid-Deck/DroidDeck/pull/3044), [#3070](https://github.com/Droid-Deck/DroidDeck/pull/3070), [#2651](https://github.com/Droid-Deck/DroidDeck/pull/2651), [#2946](https://github.com/Droid-Deck/DroidDeck/pull/2946), [#2968](https://github.com/Droid-Deck/DroidDeck/pull/2968), [#3095](https://github.com/Droid-Deck/DroidDeck/pull/3095))
|
||||
- Fixed **display and drivers**: broken pictures on GPUs such as the Adreno 710 whose driver lists no buffer layouts; display and Steam window sizes after Steam resizes the game screen; the Mali bridge switch, Zink on Mali-G610 and shaders the phone’s compiler rejected (@The412Banner, @xXJSONDeruloXx, @LarzVader, @maxjivi05, [#2927](https://github.com/Droid-Deck/DroidDeck/pull/2927), [#2738](https://github.com/Droid-Deck/DroidDeck/pull/2738), [#3124](https://github.com/Droid-Deck/DroidDeck/pull/3124), [#2985](https://github.com/Droid-Deck/DroidDeck/pull/2985), [#3076](https://github.com/Droid-Deck/DroidDeck/pull/3076), [#3164](https://github.com/Droid-Deck/DroidDeck/pull/3164), [#3102](https://github.com/Droid-Deck/DroidDeck/pull/3102), [#3101](https://github.com/Droid-Deck/DroidDeck/pull/3101), [#2587](https://github.com/Droid-Deck/DroidDeck/pull/2587))
|
||||
- Fixed **a few more things**: a session freezing while a program waits for a browser sign-in, and picture-in-picture leaving no way back; the bottom screen ignoring touch during a game, and launching a running game again asking Steam twice; the app closing when opening Game environment from the second screen; the Stores tab moving under More, apps opening on the wrong screen, and the launcher freezing after a language change; game starts for Hades II, Dragon’s Dogma 2, Dragon Quest Monsters 4, Mount & Blade: Warband, Don’t Starve Together and Europa Universalis IV; x86 Steam stopping at Installing update under FEX, Battle.net unable to repair ProgramData folders a stale Windows owner locked, Windows programs reading the wrong CPU cache sizes, RetroArch’s packaged assets and cores, and non-Adreno graphics logs turning on Wine debug tracing; the desktop panel layout and KDE language packs; Decky Loader’s menu, Electron Node helpers, a Bluetooth controller that fails to disconnect closing the app, and per-game Turnip debug settings. Dual screen sessions also gets **On, game on second screen**, for a phone driving a monitor or TV (@maxjivi05, @xXJSONDeruloXx, @albert-carreras, @The412Banner, @xlulx, @Tapuuk, @zdennisz, @coffeemeist3r, [#2615](https://github.com/Droid-Deck/DroidDeck/pull/2615), [#2559](https://github.com/Droid-Deck/DroidDeck/pull/2559), [#2910](https://github.com/Droid-Deck/DroidDeck/pull/2910), [#2937](https://github.com/Droid-Deck/DroidDeck/pull/2937), [#2919](https://github.com/Droid-Deck/DroidDeck/pull/2919), [#2940](https://github.com/Droid-Deck/DroidDeck/pull/2940), [#2452](https://github.com/Droid-Deck/DroidDeck/pull/2452), [#3115](https://github.com/Droid-Deck/DroidDeck/pull/3115), [#3093](https://github.com/Droid-Deck/DroidDeck/pull/3093), [#3163](https://github.com/Droid-Deck/DroidDeck/pull/3163), [#2855](https://github.com/Droid-Deck/DroidDeck/pull/2855), [#3011](https://github.com/Droid-Deck/DroidDeck/pull/3011), [#2847](https://github.com/Droid-Deck/DroidDeck/pull/2847), [#3092](https://github.com/Droid-Deck/DroidDeck/pull/3092), [#2998](https://github.com/Droid-Deck/DroidDeck/pull/2998), [#3173](https://github.com/Droid-Deck/DroidDeck/pull/3173), [#2845](https://github.com/Droid-Deck/DroidDeck/pull/2845), [#2481](https://github.com/Droid-Deck/DroidDeck/pull/2481), [#2418](https://github.com/Droid-Deck/DroidDeck/pull/2418), [#2670](https://github.com/Droid-Deck/DroidDeck/pull/2670), [#2254](https://github.com/Droid-Deck/DroidDeck/pull/2254), [#2327](https://github.com/Droid-Deck/DroidDeck/pull/2327), [#2703](https://github.com/Droid-Deck/DroidDeck/pull/2703), [#2549](https://github.com/Droid-Deck/DroidDeck/pull/2549), [#2808](https://github.com/Droid-Deck/DroidDeck/pull/2808), [#2781](https://github.com/Droid-Deck/DroidDeck/pull/2781), [#2178](https://github.com/Droid-Deck/DroidDeck/pull/2178), [#2197](https://github.com/Droid-Deck/DroidDeck/pull/2197), [#3193](https://github.com/Droid-Deck/DroidDeck/pull/3193), [#3194](https://github.com/Droid-Deck/DroidDeck/pull/3194), [#2705](https://github.com/Droid-Deck/DroidDeck/pull/2705), [#2451](https://github.com/Droid-Deck/DroidDeck/pull/2451), [#2730](https://github.com/Droid-Deck/DroidDeck/pull/2730))
|
||||
|
||||
### DroidDeck-Proton and drivers
|
||||
|
||||
These ship outside the app and reach you through Components. DroidDeck 0.7.1 had DroidDeck-Proton 11-12.3 and DD-Turnip v0.5.0; 0.7.11 brings DroidDeck-Proton 11-14.1 and DD-Turnip v0.9.1.
|
||||
|
||||
- **Faster game starts, most of all from a memory card** (DroidDeck-Proton 11-12.5 to 11-12.7). Closing an event no longer stops every other thread while wineserver answers, events come back ready to wait on, closed private events are reused, and file lookups skip extended-attribute queries and folder scans a memory card can’t answer. World of Warcraft’s start fell from 111 s to 60 s. (@maxjivi05, [Proton#17](https://github.com/Droid-Deck/DroidDeck-Proton/pull/17), [Proton#19](https://github.com/Droid-Deck/DroidDeck-Proton/pull/19), [Proton#26](https://github.com/Droid-Deck/DroidDeck-Proton/pull/26))
|
||||
- Fixed **games that debug a copy of themselves**, such as Metal Gear Solid V: Ground Zeroes, stuck on the same breakpoint at start, and **old Steam DRM games failing with error 55**. (@xXJSONDeruloXx, [Proton#16](https://github.com/Droid-Deck/DroidDeck-Proton/pull/16), [Proton#12](https://github.com/Droid-Deck/DroidDeck-Proton/pull/12))
|
||||
- Fixed **intro videos that never end**, such as Burnout Paradise Remastered waiting forever on the last frame of its first intro. (@K11MCH1, [Proton#13](https://github.com/Droid-Deck/DroidDeck-Proton/pull/13), [Proton#14](https://github.com/Droid-Deck/DroidDeck-Proton/pull/14))
|
||||
- **DroidDeck-Proton 11-14.1 moves to GE-Proton11-14**, Valve’s Wine from 21 November and FEX-2611-68, with DXVK v3.1.1, VKD3D-Proton v3.1 and about 25 video playback fixes. Games that use D3D8 or 32-bit DirectDraw stay on wined3d, as in 11-12, unless you set `PROTON_DXVK_D3D8=1` or `PROTON_USE_D7VK=1`.
|
||||
- Fixed **games freezing after a thread is stopped mid-wait**, such as the Forza Horizon 6 loading screen, **Crash Bandicoot N. Sane Trilogy** closing seconds after its title screen, **Death Stranding Director’s Cut** crashing when a graphics setting is applied, **Call of Duty: Black Ops III** crashing about 20 seconds after start, and hooking libraries that couldn’t patch relocated 32-bit DLLs. (@l4nr3, @66sam, @KeegantheVeganat0r, @FryMcNugget, @maxjivi05, [Proton#30](https://github.com/Droid-Deck/DroidDeck-Proton/pull/30), [Proton#24](https://github.com/Droid-Deck/DroidDeck-Proton/pull/24), [Proton#31](https://github.com/Droid-Deck/DroidDeck-Proton/pull/31), [Proton#34](https://github.com/Droid-Deck/DroidDeck-Proton/pull/34), [Proton#40](https://github.com/Droid-Deck/DroidDeck-Proton/pull/40))
|
||||
- **DD-Turnip v0.6.0 to v0.9.1** follow Mesa main (more than 1,300 upstream commits). The GPU can clock down again when there is little to draw, so it runs cooler and saves battery, and game frames can go straight to the compositor’s display buffers for Zero-copy presentation. (@xXJSONDeruloXx, @maxjivi05, [Drivers#22](https://github.com/Droid-Deck/Drivers/pull/22), [Drivers#26](https://github.com/Droid-Deck/Drivers/pull/26), [Drivers#20](https://github.com/Droid-Deck/Drivers/pull/20), [Drivers#27](https://github.com/Droid-Deck/Drivers/pull/27))
|
||||
- **DD-Turnip-Emu**, the Android driver packaged for emulators, is now published with every DD-Turnip release. (@maxjivi05, [Drivers#31](https://github.com/Droid-Deck/Drivers/pull/31))
|
||||
- Fixed **invisible game menus after a descriptor pool reset**, such as the Scaleform UI in Detroit: Become Human on Adreno 840, and made **subgroup shuffles** cost one step instead of one per thread. (@l4nr3, [Drivers#12](https://github.com/Droid-Deck/Drivers/pull/12), [Drivers#10](https://github.com/Droid-Deck/Drivers/pull/10))
|
||||
|
||||
### Community
|
||||
|
||||
DroidDeck is built in the open by the people who use it. These are everyone whose code is in 0.7.11:
|
||||
|
||||
| Contributor | Pull requests |
|
||||
|---|---|
|
||||
| @xXJSONDeruloXx | 192: stores, run without proot, tabs and Settings, Library, screen picker, first run, Decky store and more |
|
||||
| @maxjivi05 | 141: zero-copy and HDR, memory card speed, memory management, CurseForge, on-screen controls, drivers and more |
|
||||
| @The412Banner | 23: DroidDeck-Bionic, Xbox backend, AppImages and Flatpaks without proot, Mali bridge |
|
||||
| @DeathKhan | 12: True black theme, Apps page, Home button |
|
||||
| @Tapuuk | 10: 8 Elite thread boost, start-up errors, HUD, CI |
|
||||
| @KeegantheVeganat0r | 9: Lab builds, Death Stranding fix |
|
||||
| @EnzoDLofi | 9: per-game frame generation, integer scaling, SMAA, Custom theme |
|
||||
| @2-Shar | 9: LT and RT tab stepping, page swipes, focus ring |
|
||||
| @FX192 | 8: Soundtracks, Favorites, Hidden tab, Manage stores, resolutions |
|
||||
| @kingokksa | 5: virtual pads outside Steam, HUD, translations |
|
||||
| @K11MCH1 | 4: Ubisoft launches, Epic launcher check |
|
||||
| @zdennisz | 4: held keys, FAT32 warning |
|
||||
| @alien2003 | 3: pen as a mouse, pen test tool, two-screen screenshots |
|
||||
| @Dantalian-dev | 3: file manager toolbar and Back, plain text editor |
|
||||
| @FryMcNugget | 3: Proton from a .zip, Lab build memory |
|
||||
| @xlulx | 3: SM8750P thread hints, nested mouse with touch disabled, native shader compilers for three games |
|
||||
| @JMLambo | 2: Plasma and Firefox on the system PowerVR driver |
|
||||
| @KvFxKaido | 2: Back gesture with controllers that bring a mouse, Xbox bundle packaging files |
|
||||
| @LarzVader | 2: Zink on Mali-G610, Mali layer map growth |
|
||||
| @visail | 2: Battle.net folder errors, launch request coordinator |
|
||||
| @0use-TE | 1: hardware Escape before Back |
|
||||
| @albert-carreras | 1: Dragon Quest Monsters 4 |
|
||||
| @ASEbrahim | 1: MaliBridge 0.5.5.4 |
|
||||
| @coffeemeist3r | 1: Mesa sampler fix |
|
||||
| @Drik0 | 1: per-game DLL overrides |
|
||||
| @guohaomin1995-dev | 1: arm64 Steam update progress in every language |
|
||||
| @informalTechCode | 1: XREAL One Pro+ tracking |
|
||||
| @JanPokorny | 1: Dev Harness focus fix |
|
||||
| @Kobtul | 1: Godot games with Sentry |
|
||||
| @l4nr3 | 1: Xbox PlayFab Game Saves |
|
||||
| @measlesbagel | 1: icon packs |
|
||||
| @mhaye20 | 1: XREAL One and Aura head tracking |
|
||||
| @moronigranja | 1: Steam target whose file is gone |
|
||||
| @Necomer0920 | 1: SDL 3 games and the virtual pads’ udev devices |
|
||||
| @OmarAlTaki1 | 1: USB mouse in cast mode |
|
||||
| @pablogonz12 | 1: payload shebangs |
|
||||
| @rainleee | 1: Mali bridge flicker |
|
||||
| @SlicelessBread | 1: Lab builds on 8 GB devices |
|
||||
| @unixenon | 1: Mali (Venus) switch after restart |
|
||||
| @vinegh4 | 1: Remote Play controllers |
|
||||
| @Zeratullo | 1: Xbox launch folder |
|
||||
| @66sam | 1: Crash Bandicoot fix in DroidDeck-Proton |
|
||||
|
||||
### New contributors
|
||||
|
||||
- @vinegh4 made their first contribution in [#2033](https://github.com/Droid-Deck/DroidDeck/pull/2033).
|
||||
- @measlesbagel made their first contribution in [#2207](https://github.com/Droid-Deck/DroidDeck/pull/2207).
|
||||
- @Drik0 made their first contribution in [#2332](https://github.com/Droid-Deck/DroidDeck/pull/2332).
|
||||
- @DeathKhan made their first contribution in [#2492](https://github.com/Droid-Deck/DroidDeck/pull/2492).
|
||||
- @rainleee made their first contribution in [#2506](https://github.com/Droid-Deck/DroidDeck/pull/2506).
|
||||
- @zdennisz made their first contribution in [#2524](https://github.com/Droid-Deck/DroidDeck/pull/2524).
|
||||
- @mhaye20 made their first contribution in [#2532](https://github.com/Droid-Deck/DroidDeck/pull/2532).
|
||||
- @Tapuuk made their first contribution in [#2607](https://github.com/Droid-Deck/DroidDeck/pull/2607).
|
||||
- @alien2003 made their first contribution in [#2625](https://github.com/Droid-Deck/DroidDeck/pull/2625).
|
||||
- @guohaomin1995-dev made their first contribution in [#2651](https://github.com/Droid-Deck/DroidDeck/pull/2651).
|
||||
- @KvFxKaido made their first contribution in [#2666](https://github.com/Droid-Deck/DroidDeck/pull/2666).
|
||||
- @SlicelessBread made their first contribution in [#2667](https://github.com/Droid-Deck/DroidDeck/pull/2667).
|
||||
- @unixenon made their first contribution in [#2684](https://github.com/Droid-Deck/DroidDeck/pull/2684).
|
||||
- @Zeratullo made their first contribution in [#2751](https://github.com/Droid-Deck/DroidDeck/pull/2751).
|
||||
- @JanPokorny made their first contribution in [#2769](https://github.com/Droid-Deck/DroidDeck/pull/2769).
|
||||
- @JMLambo made their first contribution in [#2836](https://github.com/Droid-Deck/DroidDeck/pull/2836).
|
||||
- @albert-carreras made their first contribution in [#2847](https://github.com/Droid-Deck/DroidDeck/pull/2847).
|
||||
- @2-Shar made their first contribution in [#2856](https://github.com/Droid-Deck/DroidDeck/pull/2856).
|
||||
- @FryMcNugget made their first contribution in [#2864](https://github.com/Droid-Deck/DroidDeck/pull/2864).
|
||||
- @xlulx made their first contribution in [#2914](https://github.com/Droid-Deck/DroidDeck/pull/2914).
|
||||
- @Necomer0920 made their first contribution in [#2915](https://github.com/Droid-Deck/DroidDeck/pull/2915).
|
||||
- @pablogonz12 made their first contribution in [#2930](https://github.com/Droid-Deck/DroidDeck/pull/2930).
|
||||
- @0use-TE made their first contribution in [#2976](https://github.com/Droid-Deck/DroidDeck/pull/2976).
|
||||
- @LarzVader made their first contribution in [#3101](https://github.com/Droid-Deck/DroidDeck/pull/3101).
|
||||
- @66sam made their first contribution in [Proton#24](https://github.com/Droid-Deck/DroidDeck-Proton/pull/24).
|
||||
|
||||
[Full changelog](https://github.com/Droid-Deck/DroidDeck/compare/0.7.1...0.7.11)
|
||||
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 139 KiB |
|
Before Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 160 KiB |
|
Before Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 125 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 255 KiB |
|
Before Width: | Height: | Size: 157 KiB |
|
Before Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 109 KiB |
@@ -19,8 +19,6 @@ library list, before anything is published.
|
||||
moves (it sat frozen). The X pointer is asked for only while a cursor image is drawn - every
|
||||
vblank while shown, every 50 ms while hidden for inactivity - since each ask is a blocking round
|
||||
trip to Xwayland on the paint thread; with no image, wlserver's position is used as upstream does.
|
||||
Only a move of the X pointer is followed, not where the X server starts it (the screen centre):
|
||||
a window that gains focus is entered at the cursor, and Big Picture then hovered its centre tile.
|
||||
- `0101-nested-wayland-cursor-routing.patch` - this app: `gamescope_cursor_composite=2` lets the
|
||||
nested Wayland session paint its cursor in the output using the real X pointer position; client
|
||||
cursor surfaces are cleared to prevent a duplicate at the host pointer, while Gamescope's original
|
||||
|
||||
@@ -55,7 +55,7 @@ diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp
|
||||
index 10990b8..08afbc4 100644
|
||||
--- a/src/steamcompmgr.cpp
|
||||
+++ b/src/steamcompmgr.cpp
|
||||
@@ -2025,18 +2025,58 @@ void MouseCursor::UpdatePosition()
|
||||
@@ -2025,18 +2025,53 @@ void MouseCursor::UpdatePosition()
|
||||
if ( pConstraint && pConstraint->current.cursor_hint.enabled )
|
||||
{
|
||||
m_bConstrained = true;
|
||||
@@ -102,12 +102,7 @@ index 10990b8..08afbc4 100644
|
||||
+ &win_x, &win_y,
|
||||
+ &mask );
|
||||
+
|
||||
+ // The X server starts its pointer at the screen centre; only a later move is input.
|
||||
+ const bool bRootMoved = m_bRootQueried && ( root_x != m_nRootX || root_y != m_nRootY );
|
||||
+ m_bRootQueried = true;
|
||||
+ m_nRootX = root_x;
|
||||
+ m_nRootY = root_y;
|
||||
+ if ( bRootMoved && ( root_x != m_x || root_y != m_y ) )
|
||||
+ if ( root_x != m_x || root_y != m_y )
|
||||
+ {
|
||||
+ m_x = root_x;
|
||||
+ m_y = root_y;
|
||||
@@ -122,13 +117,11 @@ diff --git a/src/steamcompmgr.hpp b/src/steamcompmgr.hpp
|
||||
index c428784..bd62fd1 100644
|
||||
--- a/src/steamcompmgr.hpp
|
||||
+++ b/src/steamcompmgr.hpp
|
||||
@@ -109,6 +109,9 @@ private:
|
||||
@@ -109,6 +109,7 @@ private:
|
||||
|
||||
int m_x = 0, m_y = 0;
|
||||
bool m_bConstrained = false;
|
||||
+ uint64_t m_ulLastPointerQuery = 0;
|
||||
+ bool m_bRootQueried = false;
|
||||
+ int m_nRootX = 0, m_nRootY = 0;
|
||||
int m_hotspotX = 0, m_hotspotY = 0;
|
||||
|
||||
gamescope::OwningRc<CVulkanTexture> m_texture;
|
||||
@@ -1,14 +0,0 @@
|
||||
diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp
|
||||
--- a/src/steamcompmgr.cpp
|
||||
+++ b/src/steamcompmgr.cpp
|
||||
@@ -5818,7 +5818,9 @@
|
||||
if ( pFocus->inputFocusWindow->GetFocus()->bResetToCorner )
|
||||
{
|
||||
wlserver_lock();
|
||||
- wlserver_mousewarp( pFocus->inputFocusWindow->GetGeometry().nWidth / 2, pFocus->inputFocusWindow->GetGeometry().nHeight / 2, 0, true );
|
||||
+ // Only the corner reaches the client: a page that loads during this reset keeps the centre as its hover.
|
||||
+ wlserver.mouse_surface_cursorx = pFocus->inputFocusWindow->GetGeometry().nWidth / 2;
|
||||
+ wlserver.mouse_surface_cursory = pFocus->inputFocusWindow->GetGeometry().nHeight / 2;
|
||||
wlserver_fake_mouse_pos( pFocus->inputFocusWindow->GetGeometry().nWidth - 1, pFocus->inputFocusWindow->GetGeometry().nHeight - 1 );
|
||||
wlserver_unlock();
|
||||
}
|
||||
@@ -38,9 +38,8 @@ python3 /usr/local/bin/droiddeck-desktop-programs 2>&1 | sed 's/^/[programs] /'
|
||||
# start, and a panel made before this version (Kubuntu's own, or the first SteamOS one without the
|
||||
# pager, clock and Plasma's stock pins) is set aside once so Plasma lays out the current one.
|
||||
dd_layout=/usr/share/plasma/look-and-feel/com.valve.vapor.desktop/contents/layouts
|
||||
dd_layout_installed=0
|
||||
if [ -d "$dd_layout" ]; then
|
||||
if cat > "$dd_layout/org.kde.plasma.desktop-layout.js" <<'LAYOUT'
|
||||
cat > "$dd_layout/org.kde.plasma.desktop-layout.js" <<'LAYOUT'
|
||||
var desktops = desktopsForActivity(currentActivity());
|
||||
for (var i = 0; i < desktops.length; i++) {
|
||||
desktops[i].wallpaperPlugin = "org.kde.image";
|
||||
@@ -112,13 +111,10 @@ clock.currentConfigGroup = ["Appearance"];
|
||||
clock.writeConfig("dateFormat", "isoDate");
|
||||
panel.addWidget("org.kde.plasma.showdesktop");
|
||||
LAYOUT
|
||||
then
|
||||
dd_layout_installed=1
|
||||
fi
|
||||
fi
|
||||
dd_panel_rc="${XDG_CONFIG_HOME:-$HOME/.config}/plasma-org.kde.plasma.desktop-appletsrc"
|
||||
dd_panel_stamp="${XDG_CONFIG_HOME:-$HOME/.config}/droiddeck-panel-layout"
|
||||
if [ "$dd_layout_installed" -eq 1 ] && [ "$(cat "$dd_panel_stamp" 2>/dev/null)" != steamos-2 ]; then
|
||||
if [ "$(cat "$dd_panel_stamp" 2>/dev/null)" != steamos-2 ]; then
|
||||
dd_panel_backup="$dd_panel_rc.before-steamos-2"
|
||||
[ -e "$dd_panel_backup" ] && dd_panel_backup="$dd_panel_backup.$$"
|
||||
if [ ! -f "$dd_panel_rc" ] || mv "$dd_panel_rc" "$dd_panel_backup"; then
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
#!/bin/sh
|
||||
# The device tree on Android handhelds names the SoC vendor's reference board ("Kera MTP") and an
|
||||
# internal codename for the CPU, so the device and SoC names come from Android through the session.
|
||||
case "$1" in
|
||||
host)
|
||||
if [ -n "$DD_DEVICE_NAME" ]; then
|
||||
printf '%s\n' "$DD_DEVICE_NAME"
|
||||
else
|
||||
tr -d '\0' < /proc/device-tree/model 2>/dev/null
|
||||
echo
|
||||
fi
|
||||
;;
|
||||
cpu)
|
||||
name=${DD_SOC_NAME:-$(cat /sys/devices/soc0/machine 2>/dev/null)}
|
||||
cores=$(getconf _NPROCESSORS_CONF)
|
||||
mhz=$(cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq 2>/dev/null | sort -n | tail -n 1)
|
||||
if [ -n "$mhz" ]; then
|
||||
printf '%s (%s) @ %s GHz\n' "$name" "$cores" "$(awk -v k="$mhz" 'BEGIN { printf "%.2f", k / 1000000 }')"
|
||||
else
|
||||
printf '%s (%s)\n' "$name" "$cores"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: droiddeck-device-info host|cpu" >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
@@ -1,25 +0,0 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
"type": "file",
|
||||
"source": "/usr/share/droiddeck/fastfetch/logo.txt",
|
||||
"color": {
|
||||
"1": "38;2;255;255;255",
|
||||
"2": "38;2;26;159;255"
|
||||
},
|
||||
"padding": { "right": 3 }
|
||||
},
|
||||
"modules": [
|
||||
"title", "separator", "os",
|
||||
{ "type": "command", "key": "Host", "text": "droiddeck-device-info host" },
|
||||
"kernel", "uptime", "packages", "shell",
|
||||
"display", "de", "wm", "wmtheme", "theme", "icons", "font", "cursor",
|
||||
"terminal",
|
||||
{ "type": "command", "key": "CPU", "text": "droiddeck-device-info cpu" },
|
||||
"gpu", "memory", "swap",
|
||||
{ "type": "disk", "key": "Disk", "folders": "/", "format": "{size-used} / {size-total} ({size-percentage})" },
|
||||
{ "type": "battery", "key": "Battery" },
|
||||
"locale",
|
||||
"break", "colors"
|
||||
]
|
||||
}
|
||||
@@ -1530,13 +1530,9 @@ def game_logs(command, env, app_id, now=None):
|
||||
except OSError as error:
|
||||
print("droiddeck-game-env: no game log folder (%s)" % error, file=sys.stderr)
|
||||
return env
|
||||
proton_log = env.get("PROTON_LOG", "")
|
||||
asked = proton_log not in ("", "0")
|
||||
result = dict(env)
|
||||
if not asked:
|
||||
result.setdefault("WINEDEBUG", "-all,err+all")
|
||||
result.update({
|
||||
"PROTON_LOG": proton_log if asked else "1",
|
||||
"PROTON_LOG": "1",
|
||||
"PROTON_LOG_DIR": str(folder),
|
||||
"DXVK_LOG_PATH": str(folder),
|
||||
"DXVK_LOG_LEVEL": env.get("DXVK_LOG_LEVEL", "info"),
|
||||
|
||||
@@ -1169,10 +1169,7 @@ case $mode in
|
||||
"${DD_X64_HOME:-$HOME/.droiddeck-x64}/.local/share/Steam" &&
|
||||
echo "$DD_SHADER_PRECACHE" > "$HOME/.dd-shader-precache-applied" || true
|
||||
fi
|
||||
if [ "$steam_x64" = 0 ] && [ ! -f "$steam_root/steamapps/appmanifest_4427310.acf" ] &&
|
||||
! steam-compatibility "$steam_root" --valve-proton-needed; then
|
||||
step "leaving Valve's ARM64 Proton until a title needs it"
|
||||
elif [ "$steam_x64" = 0 ] && [ ! -f "$steam_root/steamapps/appmanifest_4427310.acf" ]; then
|
||||
if [ "$steam_x64" = 0 ] && [ ! -f "$steam_root/steamapps/appmanifest_4427310.acf" ]; then
|
||||
step "asking the client to fetch the ARM64 Proton"
|
||||
set -- "$@" steam://install/4427310
|
||||
(
|
||||
|
||||
@@ -966,7 +966,6 @@ class Helper:
|
||||
self.fex_asked = set()
|
||||
self.tools_asked = {}
|
||||
self.tools_checked = None
|
||||
self.valve_names = None
|
||||
self.vr_launch = None
|
||||
self.chooser = None
|
||||
self.controls_state = None
|
||||
@@ -1257,10 +1256,6 @@ class Helper:
|
||||
page.compat("set(%d, %s)" % (int(app), json.dumps(tool if tool is not None else "")))
|
||||
say("%s -> %s" % ("default" if app == "0" else "app %s" % app,
|
||||
tool if tool is not None else "Steam native default"))
|
||||
names = set(dict(current, **changes).values()) | {default}
|
||||
if COMPAT["uses_valve_proton"](names) and not COMPAT["uses_valve_proton"](self.valve_names or ()):
|
||||
self.tools_checked = None
|
||||
self.valve_names = names
|
||||
state.update(
|
||||
auto={app: tool for app, tool in auto.items() if tool is not COMPAT["NATIVE_CHOICE"]},
|
||||
native_choices=sorted(refused_native | {app for app, tool in auto.items() if tool is COMPAT["NATIVE_CHOICE"]}),
|
||||
@@ -1281,8 +1276,7 @@ class Helper:
|
||||
self.tools_checked = now
|
||||
if COMPAT["game_running"]():
|
||||
return
|
||||
needed = COMPAT["valve_proton_needed"](self.steam_root, self.valve_names)
|
||||
for app, action in COMPAT["tool_downloads"](self.steam_root, needed):
|
||||
for app, action in COMPAT["tool_downloads"](self.steam_root):
|
||||
if now - self.tools_asked.get(app, -TOOL_RETRY_SECONDS) < TOOL_RETRY_SECONDS:
|
||||
continue
|
||||
self.tools_asked[app] = now
|
||||
|
||||
@@ -26,9 +26,6 @@ SNIPER_APPID = "1628350"
|
||||
SLR4_APPID = "4183110"
|
||||
FEX_DEPENDENCIES = (FEX_APPID, SNIPER_APPID, SLR4_APPID)
|
||||
REQUIRED_TOOLS = (PROTON_ARM64_APPID,) + FEX_DEPENDENCIES
|
||||
# "0" = the app's "Valve Proton only when needed": Valve's ARM64 Proton is fetched only for a title or
|
||||
# default set to a tool built from it, or while no own Proton build is installed.
|
||||
VALVE_PROTON_ENV = "DD_VALVE_PROTON"
|
||||
# Linux builds that bundle an arm64 binary their launcher starts; Steamworks offers no arm64
|
||||
# launch-option architecture, so appinfo cannot say so (#1774).
|
||||
FEX_DEFAULT_APPS = frozenset({"4385780"})
|
||||
@@ -1011,33 +1008,11 @@ def manifest_flags(tokens):
|
||||
return 0
|
||||
|
||||
|
||||
def valve_proton_on_demand():
|
||||
return os.environ.get(VALVE_PROTON_ENV) == "0"
|
||||
|
||||
|
||||
def uses_valve_proton(names):
|
||||
return any(name == TOOL or VALVE_DEPOTS.get(name) == SOURCES[0] for name in names if name)
|
||||
|
||||
|
||||
def valve_proton_needed(steam_root, names=None):
|
||||
if not valve_proton_on_demand():
|
||||
return True
|
||||
if not own_builds(tool_catalog(steam_root)):
|
||||
return True
|
||||
if names is None:
|
||||
names = set((read_config_mapping(os.path.join(steam_root, "config", "config.vdf")) or {}).values())
|
||||
names.add(read_json(state_path("state.json")).get("default"))
|
||||
return uses_valve_proton(names)
|
||||
|
||||
|
||||
def tool_downloads(steam_root, valve_needed=None):
|
||||
def tool_downloads(steam_root):
|
||||
wanted = []
|
||||
for app in REQUIRED_TOOLS:
|
||||
tokens = app_manifest(steam_root, app)
|
||||
if tokens is None:
|
||||
if app == PROTON_ARM64_APPID and not (
|
||||
valve_proton_needed(steam_root) if valve_needed is None else valve_needed):
|
||||
continue
|
||||
wanted.append((app, "install"))
|
||||
elif not manifest_flags(tokens) & FULLY_INSTALLED or manifest_flags(tokens) & UPDATE_REQUIRED:
|
||||
wanted.append((app, "update"))
|
||||
@@ -1780,8 +1755,6 @@ def x64_repoint(steam_root, tool, live=False):
|
||||
|
||||
def main():
|
||||
steam_root = sys.argv[1]
|
||||
if "--valve-proton-needed" in sys.argv[2:]:
|
||||
sys.exit(0 if valve_proton_needed(steam_root) else 1)
|
||||
if "--x64" in sys.argv[2:]:
|
||||
x64_repoint(steam_root, os.environ.get("DD_COMPAT_TOOL"), "--live" in sys.argv[2:])
|
||||
return
|
||||
@@ -1800,7 +1773,6 @@ def main():
|
||||
build_tool(os.path.join(tools, name), depot, sources, name)
|
||||
print("steam-compatibility: registered %s (%s)" % (
|
||||
name, "depot %s present" % os.path.basename(depot) if depot else
|
||||
"no ARM64 Proton depot yet; fetched when a title needs it" if valve_proton_on_demand() else
|
||||
"no ARM64 Proton depot yet; the session asks the client to fetch it"))
|
||||
build_fex_tool(os.path.join(tools, FEX_TOOL))
|
||||
print("steam-compatibility: registered %s" % FEX_TOOL)
|
||||
|
||||
@@ -27,12 +27,10 @@ def source_assets(overlay=OVERLAY):
|
||||
result = {source: 'assets/linuxfs/' + source.relative_to(overlay).as_posix() for source in sources}
|
||||
if overlay == OVERLAY:
|
||||
desktop = overlay.parent / 'desktop'
|
||||
for name in ['droiddeck-desktop', 'droiddeck-gpu', 'droiddeck-desktop-gpu', 'droiddeck-device-info',
|
||||
'kwin_wayland_wrapper']:
|
||||
for name in ['droiddeck-desktop', 'droiddeck-gpu', 'droiddeck-desktop-gpu', 'kwin_wayland_wrapper']:
|
||||
result[desktop / name] = 'assets/linuxfs/usr/local/bin/' + name
|
||||
result[desktop / 'firefox-droiddeck.js'] = 'assets/linuxfs/usr/lib/firefox/defaults/pref/droiddeck.js'
|
||||
result[desktop / 'droiddeck-clipboard.desktop'] = 'assets/linuxfs/etc/xdg/autostart/droiddeck-clipboard.desktop'
|
||||
result[desktop / 'fastfetch.jsonc'] = 'assets/linuxfs/etc/xdg/fastfetch/config.jsonc'
|
||||
result[overlay.parent.parent / 'mangoapp/mangoapp'] = 'assets/linuxfs/usr/local/bin/mangoapp'
|
||||
return result
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
DESKTOP = Path(__file__).resolve().parents[1] / "linuxfs/desktop"
|
||||
|
||||
|
||||
class DesktopDeviceInfoTest(unittest.TestCase):
|
||||
def run_info(self, what, **env):
|
||||
return subprocess.run(["sh", str(DESKTOP / "droiddeck-device-info"), what], capture_output=True, text=True,
|
||||
env={**os.environ, **env}, check=True).stdout
|
||||
|
||||
def test_names_come_from_the_session(self):
|
||||
self.assertEqual(self.run_info("host", DD_DEVICE_NAME="Retroid Pocket Duo"), "Retroid Pocket Duo\n")
|
||||
self.assertRegex(self.run_info("cpu", DD_SOC_NAME="Moorechip CQ7790S"),
|
||||
r"^Moorechip CQ7790S \(\d+\)( @ \d+\.\d\d GHz)?\n$")
|
||||
|
||||
def test_fastfetch_uses_it_for_host_and_cpu(self):
|
||||
text = re.sub(r"^\s*//.*$", "", (DESKTOP / "fastfetch.jsonc").read_text(), flags=re.M)
|
||||
modules = {m["key"]: m["text"] for m in json.loads(text)["modules"] if isinstance(m, dict) and m.get("type") == "command"}
|
||||
self.assertEqual(modules, {"Host": "droiddeck-device-info host", "CPU": "droiddeck-device-info cpu"})
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -19,11 +19,10 @@ def block(first, last):
|
||||
return DESKTOP[start:DESKTOP.index(last, start) + len(last)]
|
||||
|
||||
|
||||
def run(script, home, layout_installed=True):
|
||||
def run(script, home):
|
||||
environment = {key: value for key, value in os.environ.items() if key != 'XDG_CONFIG_HOME'}
|
||||
environment['HOME'] = str(home)
|
||||
prefix = 'dd_layout_installed=1\n' if layout_installed else ''
|
||||
result = subprocess.run(['bash', '-c', prefix + script], env=environment, capture_output=True, text=True, timeout=5)
|
||||
result = subprocess.run(['bash', '-c', script], env=environment, capture_output=True, text=True, timeout=5)
|
||||
if result.returncode != 0:
|
||||
raise AssertionError(result.stderr)
|
||||
|
||||
@@ -102,52 +101,6 @@ class DesktopSteamosPanelTest(unittest.TestCase):
|
||||
for language in ('ja', 'ko', 'th', 'zh_CN', 'zh_TW', 'hi'):
|
||||
self.assertIn('"' + language + '"', OVERLAY_LAYOUT)
|
||||
|
||||
def test_panel_migration_is_skipped_when_layout_directory_is_missing(self):
|
||||
with tempfile.TemporaryDirectory() as home:
|
||||
home = Path(home)
|
||||
config = home / '.config'
|
||||
config.mkdir()
|
||||
(config / RC).write_text('existing panel\n')
|
||||
layout_dir = home / 'missing-layout'
|
||||
script = block('dd_layout=', '# startplasma applies this file')
|
||||
script = script.replace('dd_layout=' + LAYOUT_DIR, 'dd_layout=' + layout_dir.as_posix())
|
||||
run(script, home)
|
||||
self.assertEqual('existing panel\n', (config / RC).read_text())
|
||||
self.assertFalse((config / (RC + '.before-steamos-2')).exists())
|
||||
self.assertFalse((config / STAMP).exists())
|
||||
|
||||
def test_panel_migration_is_skipped_when_layout_write_fails(self):
|
||||
with tempfile.TemporaryDirectory() as home:
|
||||
home = Path(home)
|
||||
config = home / '.config'
|
||||
config.mkdir()
|
||||
(config / RC).write_text('existing panel\n')
|
||||
layout_dir = home / 'layouts'
|
||||
layout_dir.mkdir()
|
||||
(layout_dir / 'org.kde.plasma.desktop-layout.js').mkdir()
|
||||
script = block('dd_layout=', '# startplasma applies this file')
|
||||
script = script.replace('dd_layout=' + LAYOUT_DIR, 'dd_layout=' + layout_dir.as_posix())
|
||||
run(script, home)
|
||||
self.assertEqual('existing panel\n', (config / RC).read_text())
|
||||
self.assertFalse((config / (RC + '.before-steamos-2')).exists())
|
||||
self.assertFalse((config / STAMP).exists())
|
||||
|
||||
def test_panel_migration_runs_after_layout_write_succeeds(self):
|
||||
with tempfile.TemporaryDirectory() as home:
|
||||
home = Path(home)
|
||||
config = home / '.config'
|
||||
config.mkdir()
|
||||
(config / RC).write_text('old panel\n')
|
||||
layout_dir = home / 'layouts'
|
||||
layout_dir.mkdir()
|
||||
script = block('dd_layout=', '# startplasma applies this file')
|
||||
script = script.replace('dd_layout=' + LAYOUT_DIR, 'dd_layout=' + layout_dir.as_posix())
|
||||
run(script, home)
|
||||
self.assertTrue((layout_dir / 'org.kde.plasma.desktop-layout.js').is_file())
|
||||
self.assertFalse((config / RC).exists())
|
||||
self.assertEqual('old panel\n', (config / (RC + '.before-steamos-2')).read_text())
|
||||
self.assertEqual('steamos-2', (config / STAMP).read_text().strip())
|
||||
|
||||
def test_the_panel_is_prepared_before_plasma_starts(self):
|
||||
for marker in ('dd_layout=', 'dd_panel_rc='):
|
||||
self.assertLess(DESKTOP.index(marker), DESKTOP.index('dbus-run-session -- startplasma-wayland'))
|
||||
|
||||
@@ -1430,43 +1430,6 @@ class AppInfoTest(unittest.TestCase):
|
||||
self.manifest(steam, app)
|
||||
self.assertEqual(downloads(str(steam)), [])
|
||||
|
||||
def test_valve_proton_on_demand_waits_for_a_title_that_uses_it(self):
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
steam = Path(tmp)
|
||||
for app in ("3127680", "1628350", "4183110"):
|
||||
self.manifest(steam, app)
|
||||
downloads, needed, tool = self.COMPAT["tool_downloads"], self.COMPAT["valve_proton_needed"], self.COMPAT["TOOL"]
|
||||
own = steam / "compatibilitytools.d/DroidDeck-Proton 11-14.1"
|
||||
with mock.patch.dict(os.environ, {"DD_VALVE_PROTON": "0"}):
|
||||
self.assertEqual(downloads(str(steam)), [("4427310", "install")])
|
||||
ge = steam / "compatibilitytools.d/GE-Proton10-25"
|
||||
ge.mkdir(parents=True)
|
||||
(ge / "droiddeck-proton-wrap").write_text("")
|
||||
(ge / "compatibilitytool.vdf").write_text(
|
||||
'"compatibilitytools" { "compat_tools" { "GE-Proton10-25" { "install_path" "." } } }')
|
||||
self.assertEqual(downloads(str(steam)), [("4427310", "install")])
|
||||
own.mkdir(parents=True)
|
||||
(own / "droiddeck-proton-wrap").write_text("")
|
||||
(own / "compatibilitytool.vdf").write_text(
|
||||
'"compatibilitytools" { "compat_tools" { "DroidDeck-Proton-11-14.1" { "install_path" "." } } }')
|
||||
self.assertEqual(downloads(str(steam)), [])
|
||||
self.assertFalse(needed(str(steam), {"DroidDeck-Proton-11-14.1", None}))
|
||||
self.assertTrue(needed(str(steam), {"DroidDeck-Proton-11-14.1", tool}))
|
||||
self.assertTrue(needed(str(steam), {"proton-experimental-arm64"}))
|
||||
self.assertEqual(downloads(str(steam), True), [("4427310", "install")])
|
||||
config = steam / "config/config.vdf"
|
||||
config.parent.mkdir()
|
||||
config.write_text('"InstallConfigStore" { "Software" { "Valve" { "Steam" { "CompatToolMapping" { '
|
||||
'"0" { "name" "DroidDeck-Proton-11-14.1" "config" "" "priority" "75" } '
|
||||
'"10" { "name" "%s" "config" "" "priority" "250" } } } } } }' % tool)
|
||||
self.assertEqual(downloads(str(steam)), [("4427310", "install")])
|
||||
config.unlink()
|
||||
self.manifest(steam, "4427310", flags="6")
|
||||
self.assertEqual(downloads(str(steam), False), [("4427310", "update")])
|
||||
with mock.patch.dict(os.environ, {"DD_VALVE_PROTON": "1"}):
|
||||
(steam / "steamapps/appmanifest_4427310.acf").unlink()
|
||||
self.assertEqual(downloads(str(steam)), [("4427310", "install")])
|
||||
|
||||
def test_titles_with_a_valve_pick_are_found_installed_or_not(self):
|
||||
def deck(oslist, runtime, kind="game"):
|
||||
common = {"type": kind, "oslist": oslist, "steam_deck_compatibility": {"configuration": {"recommended_runtime": runtime}}}
|
||||
|
||||
@@ -2199,53 +2199,6 @@ class GameEnvironmentTest(unittest.TestCase):
|
||||
named = game_logs(command, on, None, now=0)
|
||||
self.assertTrue(Path(named["PROTON_LOG_DIR"]).name.endswith("-Hades"))
|
||||
|
||||
def test_graphics_logs_trace_wine_only_when_asked(self):
|
||||
game_logs = MODULE["game_logs"]
|
||||
command = ["/proton", "waitforexitandrun", "/games/Hades/Hades.exe"]
|
||||
with tempfile.TemporaryDirectory() as tmp, mock.patch("subprocess.Popen"):
|
||||
on = {"DD_GAME_LOGS": "1", "DD_DEBUG_DIR": tmp}
|
||||
for given in ({}, {"PROTON_LOG": "0"}, {"PROTON_LOG": ""}):
|
||||
with self.subTest(given=given):
|
||||
result = game_logs(command, {**on, **given}, "42", now=0)
|
||||
self.assertEqual(result["PROTON_LOG"], "1")
|
||||
self.assertEqual(result["WINEDEBUG"], "-all,err+all")
|
||||
own = game_logs(command, {**on, "WINEDEBUG": "+relay"}, "42", now=0)
|
||||
self.assertEqual(own["WINEDEBUG"], "+relay")
|
||||
for value in ("1", "+relay"):
|
||||
with self.subTest(proton_log=value):
|
||||
user = game_logs(command, {**on, "PROTON_LOG": value}, "42", now=0)
|
||||
self.assertEqual(user["PROTON_LOG"], value)
|
||||
self.assertNotIn("WINEDEBUG", user)
|
||||
config = {"version": 1, "gameDebugLogs": True}
|
||||
debug = game_logs(command, MODULE["apply_game_debug_logs"](on, config, tmp), "42", now=0)
|
||||
self.assertEqual(debug["PROTON_LOG"], "1")
|
||||
self.assertEqual(debug["WINEDEBUG"], MODULE["game_debug_channels"]())
|
||||
|
||||
def test_game_debug_switch_controls_wine_traces_with_graphics_logs_on(self):
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
home = Path(tmp)
|
||||
config_path = home / ".config/droiddeck/game-environment.json"
|
||||
config_path.parent.mkdir(parents=True)
|
||||
probe = home / "proton"
|
||||
probe.write_text("#!" + sys.executable + "\nimport json, os\n"
|
||||
"print(json.dumps({k: os.environ.get(k) for k in ('PROTON_LOG', 'WINEDEBUG')}))\n")
|
||||
probe.chmod(0o755)
|
||||
env = {**os.environ, "HOME": tmp, "STEAM_COMPAT_DATA_PATH": str(home / "compatdata/599140"),
|
||||
"DD_DEBUG_DIR": tmp, "DD_GAME_LOGS": "1"}
|
||||
for name in ("PROTON_LOG", "WINEDEBUG"):
|
||||
env.pop(name, None)
|
||||
for enabled in (True, False, True):
|
||||
with self.subTest(enabled=enabled):
|
||||
config_path.write_text(json.dumps({"version": 1, "gameDebugLogs": enabled}))
|
||||
result = json.loads(subprocess.run(
|
||||
[sys.executable, str(BIN / "droiddeck-game-env"), str(probe), "waitforexitandrun", "game.exe"],
|
||||
env=env, text=True, capture_output=True, check=True).stdout)
|
||||
self.assertEqual(result["PROTON_LOG"], "1")
|
||||
if enabled:
|
||||
self.assertIn("+seh", result["WINEDEBUG"].split(","))
|
||||
else:
|
||||
self.assertEqual(result["WINEDEBUG"], "-all,err+all")
|
||||
|
||||
def test_rapid_game_launches_keep_separate_diagnostics(self):
|
||||
with tempfile.TemporaryDirectory() as tmp, mock.patch("subprocess.Popen"):
|
||||
env = {"DD_GAME_LOGS": "1", "DD_DEBUG_DIR": tmp}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
"type": "file",
|
||||
"source": "/usr/share/droiddeck/fastfetch/logo.txt",
|
||||
"color": {
|
||||
"1": "38;2;255;255;255",
|
||||
"2": "38;2;26;159;255"
|
||||
},
|
||||
"padding": { "right": 3 }
|
||||
},
|
||||
"modules": [
|
||||
"title", "separator", "os", "host", "kernel", "uptime", "packages", "shell",
|
||||
"display", "de", "wm", "wmtheme", "theme", "icons", "font", "cursor",
|
||||
"terminal", "cpu", "gpu", "memory", "swap", "disk", "battery", "locale",
|
||||
"break", "colors"
|
||||
]
|
||||
}
|
||||
@@ -154,7 +154,7 @@ new file mode 100755
|
||||
index 0000000..d43c5fc
|
||||
--- /dev/null
|
||||
+++ b/crates/xodus-cli/src/commands/legacy_install.rs
|
||||
@@ -0,0 +1,1527 @@
|
||||
@@ -0,0 +1,1406 @@
|
||||
+//! Installs a legacy Store title: resolve, license, download, extract.
|
||||
+//!
|
||||
+//! `streaming` only understands MSIXVC, where the container *is* the game and
|
||||
@@ -739,7 +739,7 @@ index 0000000..d43c5fc
|
||||
+ progress.bytes(high, total);
|
||||
+ };
|
||||
+ if extracted != ExitCode::SUCCESS {
|
||||
+ return fail("extract-failed", "Could not unpack the package; retrying may require downloading the bundle again because containers are removed to save disk space");
|
||||
+ return fail("extract-failed", "Could not unpack the package; the download is kept for a retry");
|
||||
+ }
|
||||
+ // Drop each container as soon as it is unpacked: a full title is tens of
|
||||
+ // gigabytes, and holding the archive and its contents at once can fill
|
||||
@@ -813,24 +813,15 @@ index 0000000..d43c5fc
|
||||
+ let Ok(text) = std::fs::read_to_string(manifest) else {
|
||||
+ return Vec::new();
|
||||
+ };
|
||||
+ use quick_xml::events::Event;
|
||||
+ let mut reader = quick_xml::Reader::from_str(&text);
|
||||
+ let mut names: Vec<String> = Vec::new();
|
||||
+ loop {
|
||||
+ match reader.read_event() {
|
||||
+ Ok(Event::Start(tag)) | Ok(Event::Empty(tag)) if tag.local_name().as_ref() == "PackageDependency" => {
|
||||
+ for attribute in tag.attributes().flatten() {
|
||||
+ if attribute.key.local_name().as_ref() != "Name" { continue; }
|
||||
+ let Ok(name) = attribute.unescape_value() else { continue };
|
||||
+ let name = name.trim();
|
||||
+ if !name.is_empty() && !names.iter().any(|seen| seen == name) {
|
||||
+ names.push(name.to_string());
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ Ok(Event::Eof) => break,
|
||||
+ Ok(_) => {}
|
||||
+ Err(_) => return Vec::new(),
|
||||
+ for chunk in text.split("<PackageDependency").skip(1) {
|
||||
+ let Some(tag) = chunk.split('>').next() else { continue };
|
||||
+ let Some(start) = tag.find("Name=\"") else { continue };
|
||||
+ let rest = &tag[start + "Name=\"".len()..];
|
||||
+ let Some(end) = rest.find('"') else { continue };
|
||||
+ let name = rest[..end].trim();
|
||||
+ if !name.is_empty() && !names.iter().any(|seen| seen == name) {
|
||||
+ names.push(name.to_string());
|
||||
+ }
|
||||
+ }
|
||||
+ names
|
||||
@@ -1003,8 +994,8 @@ index 0000000..d43c5fc
|
||||
+ for folder in level {
|
||||
+ let manifest = folder.join(LEGACY_MANIFEST);
|
||||
+ if manifest.is_file() {
|
||||
+ let text = std::fs::read_to_string(&manifest).unwrap_or_default();
|
||||
+ if identity_is_x64(&text) {
|
||||
+ let text = std::fs::read_to_string(&manifest).unwrap_or_default().to_ascii_lowercase();
|
||||
+ if text.contains("processorarchitecture=\"x64\"") {
|
||||
+ return Some(folder);
|
||||
+ }
|
||||
+ }
|
||||
@@ -1020,24 +1011,6 @@ index 0000000..d43c5fc
|
||||
+ None
|
||||
+}
|
||||
+
|
||||
+/// Reads ProcessorArchitecture only from an Identity element, ignoring comments and text.
|
||||
+fn identity_is_x64(text: &str) -> bool {
|
||||
+ use quick_xml::events::Event;
|
||||
+ let mut reader = quick_xml::Reader::from_str(text);
|
||||
+ loop {
|
||||
+ match reader.read_event() {
|
||||
+ Ok(Event::Start(tag)) | Ok(Event::Empty(tag)) if tag.local_name().as_ref() == "Identity" => {
|
||||
+ return tag.attributes().flatten().any(|attribute| {
|
||||
+ attribute.key.local_name().as_ref() == "ProcessorArchitecture"
|
||||
+ && attribute.unescape_value().is_ok_and(|value| value.eq_ignore_ascii_case("x64"))
|
||||
+ });
|
||||
+ }
|
||||
+ Ok(Event::Eof) | Err(_) => return false,
|
||||
+ Ok(_) => {}
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+/// The Windows Update category of the framework's x64 package, or of whichever
|
||||
+/// package the product lists first when no package names an architecture.
|
||||
+fn framework_category(document: &serde_json::Value) -> Option<String> {
|
||||
@@ -1084,18 +1057,8 @@ index 0000000..d43c5fc
|
||||
+/// and records what it copied so a later attempt can take exactly that back.
|
||||
+fn copy_libraries(from: &Path, to: &Path) -> Result<(), String> {
|
||||
+ let mut copied: Vec<String> = Vec::new();
|
||||
+ if let Err(error) = copy_libraries_into(from, to, &mut copied) {
|
||||
+ for name in &copied {
|
||||
+ let _ = std::fs::remove_file(to.join(name));
|
||||
+ }
|
||||
+ return Err(error);
|
||||
+ }
|
||||
+ if let Err(error) = std::fs::write(from.join(COPIED), copied.join("\n")) {
|
||||
+ for name in &copied {
|
||||
+ let _ = std::fs::remove_file(to.join(name));
|
||||
+ }
|
||||
+ return Err(format!("framework copy list failed: {error}"));
|
||||
+ }
|
||||
+ copy_libraries_into(from, to, &mut copied)?;
|
||||
+ std::fs::write(from.join(COPIED), copied.join("\n")).map_err(|error| format!("framework copy list failed: {error}"))?;
|
||||
+ Ok(())
|
||||
+}
|
||||
+
|
||||
@@ -1116,16 +1079,7 @@ index 0000000..d43c5fc
|
||||
+ if target.exists() {
|
||||
+ continue;
|
||||
+ }
|
||||
+ let temporary = to.join(format!(".{}.copying-{}", file_name.to_string_lossy(), std::process::id()));
|
||||
+ let _ = std::fs::remove_file(&temporary);
|
||||
+ if let Err(error) = std::fs::copy(&path, &temporary) {
|
||||
+ let _ = std::fs::remove_file(&temporary);
|
||||
+ return Err(format!("framework copy failed: {error}"));
|
||||
+ }
|
||||
+ if let Err(error) = std::fs::rename(&temporary, &target) {
|
||||
+ let _ = std::fs::remove_file(&temporary);
|
||||
+ return Err(format!("framework publish failed: {error}"));
|
||||
+ }
|
||||
+ std::fs::copy(&path, &target).map_err(|error| format!("framework copy failed: {error}"))?;
|
||||
+ copied.push(file_name.to_string_lossy().into_owned());
|
||||
+ }
|
||||
+ Ok(())
|
||||
@@ -1165,19 +1119,10 @@ index 0000000..d43c5fc
|
||||
+ ));
|
||||
+ }
|
||||
+ let inner = candidates.remove(0);
|
||||
+ let entries: Vec<_> = std::fs::read_dir(&inner)
|
||||
+ for entry in std::fs::read_dir(&inner)
|
||||
+ .map_err(|error| format!("Could not list the package folder: {error}"))?
|
||||
+ .filter_map(Result::ok)
|
||||
+ .collect();
|
||||
+ if !updating {
|
||||
+ for entry in &entries {
|
||||
+ let name = entry.file_name();
|
||||
+ if !is_package_metadata(&name) && destination.join(&name).exists() {
|
||||
+ return Err(format!("Extraction would overwrite {}", destination.join(name).display()));
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ for entry in entries {
|
||||
+ {
|
||||
+ let name = entry.file_name();
|
||||
+ let target = destination.join(&name);
|
||||
+ let metadata = is_package_metadata(&name);
|
||||
@@ -1197,41 +1142,16 @@ index 0000000..d43c5fc
|
||||
+ if !existing.is_empty() && !updating && !metadata {
|
||||
+ return Err(format!("Extraction would overwrite {}", target.display()));
|
||||
+ }
|
||||
+ let mut backups: Vec<(PathBuf, PathBuf)> = Vec::new();
|
||||
+ for (index, old) in existing.iter().enumerate() {
|
||||
+ let backup = destination.join(format!(".droiddeck-replace-backup-{}-{}", std::process::id(), index));
|
||||
+ if let Err(error) = std::fs::rename(old, &backup) {
|
||||
+ let mut restore_error = None;
|
||||
+ for (original, saved) in backups.iter().rev() {
|
||||
+ if let Err(error) = std::fs::rename(saved, original) {
|
||||
+ restore_error = Some(error);
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+ if let Some(restore_error) = restore_error {
|
||||
+ return Err(format!("Could not preserve the installed entry ({error}); restoring a backup also failed ({restore_error})"));
|
||||
+ }
|
||||
+ return Err(format!("Could not preserve the installed entry: {error}"));
|
||||
+ }
|
||||
+ backups.push((old.clone(), backup));
|
||||
+ }
|
||||
+ if let Err(error) = std::fs::rename(entry.path(), &target) {
|
||||
+ let mut restore_error = None;
|
||||
+ for (original, saved) in backups.iter().rev() {
|
||||
+ if let Err(error) = std::fs::rename(saved, original) {
|
||||
+ restore_error = Some(error);
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+ if let Some(restore_error) = restore_error {
|
||||
+ return Err(format!("Could not move extracted file ({error}); restoring a backup also failed ({restore_error})"));
|
||||
+ }
|
||||
+ return Err(format!("Could not move an extracted file: {error}"));
|
||||
+ }
|
||||
+ for (_, backup) in backups {
|
||||
+ let removed = if backup.is_dir() { std::fs::remove_dir_all(&backup) } else { std::fs::remove_file(&backup) };
|
||||
+ removed.map_err(|error| format!("Could not remove replaced backup: {error}"))?;
|
||||
+ for old in existing {
|
||||
+ let replaced = if old.is_dir() {
|
||||
+ std::fs::remove_dir_all(&old)
|
||||
+ } else {
|
||||
+ std::fs::remove_file(&old)
|
||||
+ };
|
||||
+ replaced.map_err(|error| format!("Could not replace an installed file: {error}"))?;
|
||||
+ }
|
||||
+ std::fs::rename(entry.path(), &target)
|
||||
+ .map_err(|error| format!("Could not move an extracted file: {error}"))?;
|
||||
+ }
|
||||
+ std::fs::remove_dir(&inner).map_err(|error| format!("Could not remove the package folder: {error}"))?;
|
||||
+ Ok(())
|
||||
@@ -1245,9 +1165,7 @@ index 0000000..d43c5fc
|
||||
+ if applications.len() > 1 {
|
||||
+ let x64: Vec<PathBuf> = applications
|
||||
+ .iter()
|
||||
+ .filter(|folder| {
|
||||
+ identity_is_x64(&manifest_text_original(folder))
|
||||
+ })
|
||||
+ .filter(|folder| manifest_text(folder).contains("processorarchitecture=\"x64\""))
|
||||
+ .cloned()
|
||||
+ .collect();
|
||||
+ if x64.len() == 1 {
|
||||
@@ -1258,41 +1176,22 @@ index 0000000..d43c5fc
|
||||
+}
|
||||
+
|
||||
+fn manifest_text(folder: &Path) -> String {
|
||||
+ manifest_text_original(folder).to_ascii_lowercase()
|
||||
+}
|
||||
+
|
||||
+fn manifest_text_original(folder: &Path) -> String {
|
||||
+ [LEGACY_MANIFEST, MANIFEST]
|
||||
+ .iter()
|
||||
+ .filter_map(|name| std::fs::read_to_string(folder.join(name)).ok())
|
||||
+ .collect::<Vec<_>>()
|
||||
+ .join("\n")
|
||||
+ .join("
|
||||
+")
|
||||
+ .to_ascii_lowercase()
|
||||
+}
|
||||
+
|
||||
+fn declares_application(folder: &Path) -> bool {
|
||||
+ use quick_xml::events::Event;
|
||||
+ for (name, expected) in [
|
||||
+ (LEGACY_MANIFEST, "Application"),
|
||||
+ (MANIFEST, "Application"),
|
||||
+ ("MicrosoftGame.config", "Executable"),
|
||||
+ ] {
|
||||
+ let Ok(text) = std::fs::read_to_string(folder.join(name)) else { continue };
|
||||
+ let mut reader = quick_xml::Reader::from_str(&text);
|
||||
+ loop {
|
||||
+ match reader.read_event() {
|
||||
+ Ok(Event::Start(tag)) | Ok(Event::Empty(tag))
|
||||
+ if tag.local_name().as_ref() == expected => return true,
|
||||
+ Ok(Event::Eof) | Err(_) => break,
|
||||
+ Ok(_) => {}
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ false
|
||||
+ let text = manifest_text(folder);
|
||||
+ opens_element(&text, "<application") || opens_element(&text, "<executable")
|
||||
+}
|
||||
+
|
||||
+/// Whether [text] opens [tag] as its own element, so `<Application Id=` and an attribute on the next
|
||||
+/// line count and `<Applications>` does not. Used by the focused parser test only.
|
||||
+#[cfg(test)]
|
||||
+/// line count and `<Applications>` does not.
|
||||
+fn opens_element(text: &str, tag: &str) -> bool {
|
||||
+ text.match_indices(tag).any(|(at, _)| {
|
||||
+ text[at + tag.len()..].chars().next().is_some_and(|next| next.is_whitespace() || next == '>' || next == '/')
|
||||
@@ -1542,23 +1441,6 @@ index 0000000..d43c5fc
|
||||
+ }
|
||||
+
|
||||
+ #[test]
|
||||
+ fn x64_identity_ignores_architecture_text_in_comments_and_other_elements() {
|
||||
+ assert!(!identity_is_x64(r#"<Package><!-- ProcessorArchitecture = "x64" --><Identity ProcessorArchitecture="x86"/></Package>"#));
|
||||
+ assert!(!identity_is_x64(r#"<Package><Other ProcessorArchitecture="x64"/><Identity ProcessorArchitecture="x86"/></Package>"#));
|
||||
+ assert!(identity_is_x64(r#"<Package><Identity ProcessorArchitecture = 'x64'/></Package>"#));
|
||||
+ }
|
||||
+
|
||||
+ #[test]
|
||||
+ fn application_scan_ignores_application_elements_inside_comments() {
|
||||
+ let root = scratch("commented-app");
|
||||
+ std::fs::write(root.join(LEGACY_MANIFEST), r#"<Package><!-- <Application Id="fake"/> --><Applications/></Package>"#).unwrap();
|
||||
+ assert!(!declares_application(&root));
|
||||
+ std::fs::write(root.join("MicrosoftGame.config"), r#"<Game><!-- <Executable Name="fake.exe"/> --></Game>"#).unwrap();
|
||||
+ assert!(!declares_application(&root));
|
||||
+ std::fs::remove_dir_all(&root).ok();
|
||||
+ }
|
||||
+
|
||||
+ #[test]
|
||||
+ fn hoist_still_refuses_when_several_packages_declare_an_application() {
|
||||
+ let root = scratch("ambiguous-applications");
|
||||
+ for name in ["One", "Two"] {
|
||||
@@ -1583,9 +1465,6 @@ index 0000000..d43c5fc
|
||||
+
|
||||
+ assert!(hoist(&root).unwrap_err().contains("would overwrite"));
|
||||
+ assert_eq!(std::fs::read(root.join("Game.exe")).unwrap(), b"other");
|
||||
+ assert!(hoist(&root).unwrap_err().contains("would overwrite"));
|
||||
+ assert_eq!(std::fs::read(root.join("Game.exe")).unwrap(), b"other");
|
||||
+ assert!(!root.join(LEGACY_MANIFEST).exists(), "failed hoist must not partially publish the manifest");
|
||||
+ std::fs::remove_dir_all(&root).ok();
|
||||
+ }
|
||||
+
|
||||
|
||||