Move the Linux runtime to Ubuntu 26.04 LTS with a separate Kubuntu desktop (#1733)

This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-10-29 09:05:20 -04:00
1 parent 5de690ef39
commit 29c83976d0
305 files changed
+9383 -462

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
# The Linux runtime (Ubuntu)
DroidDeck's Linux runtime: Ubuntu 26.04 LTS for arm64, with Kubuntu's Plasma desktop as a separate download, set up as
SteamOS's desktop mode (Valve's Vapor theme, the Steam Deck wallpaper, "Return to Gaming Mode" and
Steam on the desktop). The app installs it into `files/linuxfs` and runs it under its patched proot.
- `build-debs.sh` (run in an `ubuntu:26.04` container on an arm64 runner) rebuilds two Ubuntu source
packages: Mesa with `-Dfreedreno-kmds=msm,kgsl`, so Turnip and freedreno reach Android's
`/dev/kgsl-3d0`, and KWin with `patches/kwin` (nested desktop scale, an explicit render node,
scroll source/discrete forwarding). Both get a `+droiddeck` version. `patches/mesa` adds KGSL
UBWC 5/6 (backported from upstream Mesa) and the KGSL device numbers for WSI (from
[Droid-Deck/Drivers](https://github.com/Droid-Deck/Drivers)).
- The runtime's built-in Vulkan driver is DroidDeck's DD-Turnip Linux build (`DD_TURNIP_URL` and
`DD_TURNIP_SHA256` in `base.env`): Ubuntu's Turnip is diverted to `libvulkan_freedreno.so.distrib`
because it lacks the Adreno 8xx fixes. Zink, EGL and llvmpipe stay Ubuntu's.
- `build.sh` verifies Ubuntu's base image (`base.env`: signed `SHA256SUMS` from cdimage plus the
pinned hash), chroots into it and runs `setup.sh` twice. The `runtime` stage is everything gaming
mode needs; it is packed as `<tag>.tar.zst`. The `desktop` stage then adds Plasma on top, and
`desktop-pack.py` packs only what that stage added or changed as `<tag>-desktop.tar.zst`, so the
desktop shares every runtime file instead of shipping its own copy. The runtime carries
`usr/share/droiddeck/desktop-pack.json` (tag, URL, hash, size) naming its matching desktop pack.
- `setup.sh runtime` installs `packages-runtime.txt` without recommends and the `+droiddeck` debs from
a local repository in `/var/lib/droiddeck/apt` (pinned at 1001 and held), then builds the
`droiddeck-runtime` package from `overlay-runtime/`. `setup.sh desktop` installs
`packages-desktop.txt`, Firefox from Mozilla's apt repository (`mozilla.asc`, fingerprint
35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3) and builds `droiddeck-desktop` from `overlay-desktop/`.
Both packages are Protected, depend on `protected-*.txt`, own our files and divert any Ubuntu file
they replace, so apt neither removes the essentials nor overwrites our settings on upgrade.
- The desktop pack's `usr/share/droiddeck/desktop/files.tsv.gz` lists each path the desktop added
(N), changed (C) or removed (R), and `originals/` keeps the runtime's copies of changed and removed
files. Removing the desktop restores those and deletes the added files the user has not changed;
a runtime update replaces the tree, and the desktop is downloaded again when it is next opened.
At run time:
- `sudo`, `su`, `pkexec` and apt/aptitude (for commands that change the system) go through
`droiddeck-root`: the app runs them in a separate proot with `-0 --link2symlink`, passing the
caller's terminal, so dpkg gets root ownership emulation and hard links while the desktop keeps
the fast path. PackageKit (Discover) and polkit are started the same way by the session's system
bus (`/usr/share/droiddeck/system-services`).
- `apt/remember` (a `DPkg::Post-Invoke` hook) keeps the packages, sources and keys the user added in
`~/.local/share/droiddeck/apt`; `apt/restore` (autostarted) puts them back after a runtime update.
- The installer turns the image's hard links into proot's link2symlink layout, and proot shows the
linked name as `/proc/self/exe` (patch 0020), so Ubuntu's multi-call coreutils work.
`.github/workflows/build-ubuntu-runtime.yml` builds it and, run with a new tag (`ubuntu-rN`),
publishes the runtime and its desktop pack in Droid-Deck/DroidDeck-Components; `linuxfs-ubuntu.json` there names the release the
app installs.
+5
View File
@@ -0,0 +1,5 @@
APT::Install-Recommends "true";
APT::Sandbox::User "root";
Dpkg::Options { "--force-confdef"; "--force-confold"; };
DPkg::Post-Invoke { "[ ! -x /usr/share/droiddeck/apt/remember ] || /usr/share/droiddeck/apt/remember"; };
APT::Update::Post-Invoke { "[ ! -x /usr/share/droiddeck/apt/remember ] || /usr/share/droiddeck/apt/remember"; };
+3
View File
@@ -0,0 +1,3 @@
Package: plymouth plymouth-* grub-* initramfs-tools initramfs-tools-* cryptsetup-initramfs linux-image-* linux-headers-* linux-modules-* linux-generic* apport whoopsie
Pin: release *
Pin-Priority: -1
+5
View File
@@ -0,0 +1,5 @@
UBUNTU_BASE_URL=https://cdimage.ubuntu.com/ubuntu-base/releases/26.04/release/ubuntu-base-26.04.1-base-arm64.tar.gz
UBUNTU_BASE_SHA256=5a1906794ced63a71a8119c3f211ef5f0bbe0a243001b4bbd41fdf80c5b219fd
UBUNTU_CDIMAGE_KEY=843938DF228D22F7B3742BC0D94AA3F0EFE21092
DD_TURNIP_URL=https://github.com/Droid-Deck/Drivers-CI/releases/download/DD-Turnip-v0.3.4/DD-Turnip-v0.3.4.zip
DD_TURNIP_SHA256=81db74cff1bf6568581cfd79203bec22f48856006aeac09e9e0a3eb3f9416fc1
+36
View File
@@ -0,0 +1,36 @@
#!/bin/bash
set -euo pipefail
here=$(cd "$(dirname "$0")" && pwd)
out=$(realpath -m "${1:?out dir}")
export DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8 DEBEMAIL=maxjividen@gmail.com DEBFULLNAME=maxjivi05
export DEB_BUILD_OPTIONS="nocheck noddebs parallel=$(nproc)"
sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
apt-get update -qq
apt-get install -y -qq build-essential devscripts equivs patch >/dev/null
mkdir -p "$out"
work=$(mktemp -d)
cd "$work"
apt-get source -qq mesa
cd mesa-*/
sed -i '0,/GALLIUM_DRIVERS += freedreno/s//GALLIUM_DRIVERS += freedreno\n\tconfflags_GALLIUM += -Dfreedreno-kmds=msm,kgsl/' debian/rules
grep -q 'freedreno-kmds=msm,kgsl' debian/rules
for p in "$here"/patches/mesa/*.patch; do patch -p1 --forward < "$p"; done
dch -l +droiddeck -D resolute "Enable the KGSL kernel interface for freedreno and Turnip."
apt-get build-dep -y -qq ./ >/dev/null
dpkg-buildpackage -b -uc -us >"$work/mesa.log" 2>&1 || { tail -80 "$work/mesa.log"; exit 1; }
cd "$work"
apt-get source -qq kwin
cd kwin-*/
for p in "$here"/patches/kwin/*.patch; do patch -p1 --forward < "$p"; done
dch -l +droiddeck -D resolute "Scale nested outputs, open the selected render node, forward scroll details."
apt-get build-dep -y -qq ./ >/dev/null
dpkg-buildpackage -b -uc -us >"$work/kwin.log" 2>&1 || { tail -80 "$work/kwin.log"; exit 1; }
cd "$work"
for deb in *.deb; do
case $deb in *-dbgsym_*) continue ;; esac
cp "$deb" "$out/"
done
ls -l "$out"
+72
View File
@@ -0,0 +1,72 @@
#!/bin/bash
set -euo pipefail
here=$(cd "$(dirname "$0")" && pwd)
debs=$(realpath "${1:?directory with the DroidDeck-built .deb files}")
out=$(realpath -m "${2:?out dir}")
runtime_id=${3:?runtime id, e.g. ubuntu-r1}
[ "$(uname -m)" = aarch64 ] || { echo 'the Ubuntu runtime needs a native arm64 runner' >&2; exit 1; }
source "$here/base.env"
fetch() { curl -fsSL --proto '=https' --proto-redir '=https' --retry 6 --retry-delay 5 --retry-all-errors -o "$1" "$2"; }
work=$(mktemp -d)
root=$work/root
cleanup() {
for m in dev/pts dev proc sys; do sudo umount "$root/$m" 2>/dev/null || true; done
sudo rm -rf "$work"
}
trap cleanup EXIT
mkdir -p "$root" "$out"
base=$work/base.tar.gz
fetch "$base" "$UBUNTU_BASE_URL"
fetch "$work/SHA256SUMS" "${UBUNTU_BASE_URL%/*}/SHA256SUMS"
fetch "$work/SHA256SUMS.gpg" "${UBUNTU_BASE_URL%/*}/SHA256SUMS.gpg"
gpgv --status-fd 1 --keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg "$work/SHA256SUMS.gpg" "$work/SHA256SUMS" 2>/dev/null \
| grep -Eq "^\[GNUPG:\] VALIDSIG .* $UBUNTU_CDIMAGE_KEY\$"
grep -q "^$UBUNTU_BASE_SHA256 \*${UBUNTU_BASE_URL##*/}\$" "$work/SHA256SUMS"
echo "$UBUNTU_BASE_SHA256 $base" | sha256sum -c - >/dev/null
sudo tar -xzf "$base" -C "$root" --numeric-owner
sudo cp /etc/resolv.conf "$root/etc/resolv.conf"
for m in dev dev/pts proc sys; do sudo mount --bind "/$m" "$root/$m"; done
sudo mkdir -p "$root/tmp/droiddeck/debs"
sudo cp -r "$here/." "$root/tmp/droiddeck/src"
sudo cp "$debs"/*.deb "$root/tmp/droiddeck/debs/"
base_url=${DESKTOP_BASE_URL:-https://github.com/Droid-Deck/DroidDeck-Components/releases/download/$runtime_id}
desktop_id=$runtime_id-desktop
stage() {
sudo chroot "$root" /bin/bash /tmp/droiddeck/src/setup.sh /tmp/droiddeck/debs "$runtime_id" "$1"
}
seal() {
for m in dev/pts dev proc sys; do sudo umount "$root/$m"; done
sudo rm -f "$root/etc/resolv.conf"
printf 'nameserver 1.1.1.1\nnameserver 8.8.8.8\n' | sudo tee "$root/etc/resolv.conf" >/dev/null
}
unseal() {
sudo cp /etc/resolv.conf "$root/etc/resolv.conf"
for m in dev dev/pts proc sys; do sudo mount --bind "/$m" "$root/$m"; done
}
stage runtime
seal
sudo mv "$root/tmp/droiddeck" "$work/src-keep"
sudo chroot "$root" dpkg-query -W -f '${Package} ${Version}\n' > "$out/$runtime_id.packages.txt"
sudo tar -C "$root" --numeric-owner -cf "$work/runtime.tar" .
sudo python3 "$here/desktop-pack.py" manifest "$root" "$work/runtime.manifest"
unseal
sudo mv "$work/src-keep" "$root/tmp/droiddeck"
stage desktop
seal
sudo rm -rf "$root/tmp/droiddeck"
sudo chroot "$root" dpkg-query -W -f '${Package} ${Version}\n' > "$out/$desktop_id.packages.txt"
sudo python3 "$here/desktop-pack.py" pack "$root" "$work/runtime.manifest" "$work/runtime.tar" "$work/desktop.tar" "$work/meta"
sudo zstd -q -19 -T0 --rm "$work/desktop.tar" -o "$out/$desktop_id.tar.zst"
sudo chown "$(id -u):$(id -g)" "$out/$desktop_id.tar.zst"
sha256sum "$out/$desktop_id.tar.zst" | cut -d' ' -f1 > "$out/$desktop_id.sha256"
mkdir -p "$work/stamp"
python3 "$here/desktop-pack.py" describe "$out/$desktop_id.tar.zst" "$base_url/$desktop_id.tar.zst" "$desktop_id" \
"$work/stamp/usr/share/droiddeck/desktop-pack.json"
sudo tar -C "$work/stamp" --numeric-owner --owner=0 --group=0 -rf "$work/runtime.tar" ./usr/share/droiddeck/desktop-pack.json
sudo zstd -q -19 -T0 --rm "$work/runtime.tar" -o "$out/$runtime_id.tar.zst"
sudo chown "$(id -u):$(id -g)" "$out/$runtime_id.tar.zst"
sha256sum "$out/$runtime_id.tar.zst" | cut -d' ' -f1 > "$out/$runtime_id.sha256"
ls -l "$out"
+128
View File
@@ -0,0 +1,128 @@
#!/usr/bin/env python3
import gzip
import hashlib
import json
import os
import stat
import subprocess
import sys
SKIP = {"proc", "sys", "dev", "run", "tmp", "var/tmp", "var/log", "var/cache/apt", "var/lib/apt/lists",
"etc/resolv.conf", "etc/machine-id", "var/lib/dbus/machine-id"}
META = "usr/share/droiddeck/desktop"
def walk(root):
out = {}
for top, dirs, files in os.walk(root):
rel_top = os.path.relpath(top, root)
rel_top = "" if rel_top == "." else rel_top
dirs[:] = [d for d in dirs if os.path.join(rel_top, d) not in SKIP]
for name in dirs + files:
rel = os.path.join(rel_top, name)
if rel in SKIP or name.startswith(".l2s."):
continue
st = os.lstat(os.path.join(root, rel))
if stat.S_ISDIR(st.st_mode):
out[rel] = ("d", 0, st.st_mode & 0o7777, "", 0)
elif stat.S_ISLNK(st.st_mode):
out[rel] = ("l", 0, 0, os.readlink(os.path.join(root, rel)), 0)
elif stat.S_ISREG(st.st_mode):
out[rel] = ("f", st.st_size, st.st_mode & 0o7777, "%d.%d" % (st.st_ino, st.st_mtime_ns), 0)
return out
def sha256(path):
h = hashlib.sha256()
with open(path, "rb") as f:
for block in iter(lambda: f.read(1 << 20), b""):
h.update(block)
return h.hexdigest()
def save(manifest, path):
with open(path, "w") as f:
for rel, (kind, size, mode, extra, _) in sorted(manifest.items()):
f.write("%s\t%d\t%o\t%s\t%s\n" % (kind, size, mode, extra, rel))
def load(path):
out = {}
with open(path) as f:
for line in f:
kind, size, mode, extra, rel = line.rstrip("\n").split("\t", 4)
if os.path.basename(rel).startswith(".l2s."):
continue
out[rel] = (kind, int(size), int(mode, 8), extra, 0)
return out
def describe(root, rel, entry):
kind, size, _, extra, _ = entry
if kind == "f":
return "F\t%d\t%s" % (size, sha256(os.path.join(root, rel)))
if kind == "l":
return "L\t0\t%s" % extra
return "D\t0\t-"
def pack(root, before_path, runtime_tar, out_tar, meta_root):
before = load(before_path)
after = walk(root)
added = sorted(p for p in after if p not in before)
changed = sorted(p for p in after if p in before and after[p][:4] != before[p][:4] and after[p][0] != "d")
removed = sorted(p for p in before if p not in after)
if any(p.startswith(META + "/") or p == META for p in added + changed + removed):
sys.exit("the desktop stage must not write " + META)
meta = os.path.join(meta_root, META)
originals = os.path.join(meta, "originals")
os.makedirs(originals, exist_ok=True)
restore = [p for p in changed + removed if before[p][0] != "d"]
if restore:
listing = os.path.join(meta_root, "restore.list")
with open(listing, "w") as f:
f.write("".join("./%s\n" % p for p in restore))
subprocess.run(["tar", "-xf", runtime_tar, "-C", originals, "--numeric-owner", "--no-recursion", "-T", listing], check=True)
os.unlink(listing)
with gzip.open(os.path.join(meta, "files.tsv.gz"), "wt") as f:
for p in added:
f.write("N\t%s\t%s\n" % (describe(root, p, after[p]), p))
for p in changed:
f.write("C\t%s\t%s\n" % (describe(root, p, after[p]), p))
for p in removed:
f.write("R\t%s\t%s\n" % (describe(originals, p, before[p]) if before[p][0] != "d" else "D\t0\t-", p))
listing = os.path.join(meta_root, "pack.list")
with open(listing, "w") as f:
f.write("".join("./%s\n" % p for p in added + changed))
metalist = os.path.join(meta_root, "meta.list")
with open(metalist, "w") as f:
for top, dirs, files in os.walk(meta):
for name in dirs + files:
f.write("./%s\n" % os.path.relpath(os.path.join(top, name), meta_root))
f.write("./%s\n" % META)
subprocess.run(["tar", "--numeric-owner", "--no-recursion", "--hard-dereference", "-cf", out_tar, "-C", root, "-T", listing,
"-C", meta_root, "-T", metalist], check=True)
os.unlink(listing)
os.unlink(metalist)
print("desktop pack: %d added, %d changed, %d removed" % (len(added), len(changed), len(removed)))
def describe_pack(archive, url, tag, out):
digest = sha256(archive)
size = os.path.getsize(archive)
os.makedirs(os.path.dirname(out), exist_ok=True)
with open(out, "w") as f:
json.dump({"tag": tag, "url": url, "sha256": digest, "size": size}, f, indent=2)
f.write("\n")
if __name__ == "__main__":
command = sys.argv[1] if len(sys.argv) > 1 else ""
if command == "manifest" and len(sys.argv) == 4:
save(walk(sys.argv[2]), sys.argv[3])
elif command == "pack" and len(sys.argv) == 7:
pack(*sys.argv[2:])
elif command == "describe" and len(sys.argv) == 6:
describe_pack(*sys.argv[2:])
else:
sys.exit("usage: desktop-pack.py manifest ROOT OUT | pack ROOT BEFORE RUNTIME_TAR OUT_TAR META_ROOT | describe ARCHIVE URL TAG OUT_JSON")
+19
View File
@@ -0,0 +1,19 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
xsBNBGCRt7MBCADkYJHHQQoL6tKrW/LbmfR9ljz7ib2aWno4JO3VKQvLwjyUMPpq
/SXXMOnx8jXwgWizpPxQYDRJ0SQXS9ULJ1hXRL/OgMnZAYvYDeV2jBnKsAIEdiG/
e1qm8P4W9qpWJc+hNq7FOT13RzGWRx57SdLWSXo0KeY38r9lvjjOmT/cuOcmjwlD
T9XYf/RSO+yJ/AsyMdAr+ZbDeQUd9HYJiPdI04lGaGM02MjDMnx+monc+y54t+Z+
ry1WtQdzoQt9dHlIPlV1tR+xV5DHHsejCZxu9TWzzSlL5wfBBeEz7R/OIzivGJpW
QdJzd+2QDXSRg9q2XYWP5ZVtSgjVVJjNlb6ZABEBAAHNVEFydGlmYWN0IFJlZ2lz
dHJ5IFJlcG9zaXRvcnkgU2lnbmVyIDxhcnRpZmFjdC1yZWdpc3RyeS1yZXBvc2l0
b3J5LXNpZ25lckBnb29nbGUuY29tPsLAjgQTAQoAOBYhBDW6oLM+nrOW9ZyoOMC6
XObcYxWjBQJgkbezAhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEMC6XObc
YxWj+igIAMFh6DrAYMeq9sbZ1ZG6oAMrinUheGQbEqe76nIDQNsZnhDwZ2wWqgVC
7DgOMqlhQmOmzm7M6Nzmq2dvPwq3xC2OeI9fQyzjT72deBTzLP7PJok9PJFOMdLf
ILSsUnmMsheQt4DUO0jYAX2KUuWOIXXJaZ319QyoRNBPYa5qz7qXS7wHLOY89IDq
fHt6Aud8ER5zhyOyhytcYMeaGC1g1IKWmgewnhEq02FantMJGlmmFi2eA0EPD02G
C3742QGqRxLwjWsm5/TpyuU24EYKRGCRm7QdVIo3ugFSetKrn0byOxWGBvtu4fH8
XWvZkRT+u+yzH1s5yFYBqc2JTrrJvRU=
=QnvN
-----END PGP PUBLIC KEY BLOCK-----
@@ -0,0 +1 @@
path-exclude=/etc/skel/Desktop/*
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=DroidDeck software restore
Exec=/usr/share/droiddeck/apt/restore
NoDisplay=true
X-KDE-autostart-phase=2
OnlyShowIn=KDE;
@@ -0,0 +1,2 @@
[Basic Settings]
Indexing-Enabled=false
@@ -0,0 +1,5 @@
[Settings]
gtk-theme-name=Breeze-Dark
gtk-icon-theme-name=breeze-dark
gtk-font-name=Noto Sans 11
gtk-application-prefer-dark-theme=true
@@ -0,0 +1,5 @@
[Mouse]
cursorTheme=breeze_cursors
[Libinput][Defaults]
PointerAccelerationProfile=1
@@ -0,0 +1,8 @@
[Module-bluedevil]
autoload=false
[Module-kded_bolt]
autoload=false
[Module-smart]
autoload=false
@@ -0,0 +1,24 @@
[KDE]
LookAndFeelPackage=com.valve.vapor.desktop
SingleClick=false
widgetStyle=Breeze
[General]
ColorScheme=Vapor
font=Noto Sans,11,-1,5,50,0,0,0,0,0
menuFont=Noto Sans,11,-1,5,50,0,0,0,0,0
smallestReadableFont=Noto Sans,9,-1,5,50,0,0,0,0,0
toolBarFont=Noto Sans,11,-1,5,50,0,0,0,0,0
fixed=Noto Sans Mono,11,-1,5,50,0,0,0,0,0
[Icons]
Theme=breeze-dark
[KDE Action Restrictions][$i]
action/switch_user=false
action/start_new_session=false
action/lock_screen=false
[KDE Control Module Restrictions][$i]
kcm_sddm.desktop=false
kcm_plymouth.desktop=false
@@ -0,0 +1,2 @@
[Desktop Entry]
DefaultProfile=Vapor.profile
@@ -0,0 +1,3 @@
[Daemon]
Autolock=false
LockOnResume=false
@@ -0,0 +1,2 @@
[General]
loginMode=emptySession
@@ -0,0 +1,3 @@
[KSplash]
Engine=none
Theme=None
@@ -0,0 +1,3 @@
[Wallet]
Enabled=false
First Use=false
@@ -0,0 +1,12 @@
[org.kde.kdecoration2]
library=org.kde.breeze
[WindowSwitcher]
LayoutName=org.kde.breeze.desktop
[DesktopSwitcher]
LayoutName=org.kde.breeze.desktop
[Plugins]
blurEnabled=false
contrastEnabled=false
@@ -0,0 +1,32 @@
[$Version]
update_info=kwinrules.upd:replace-placement-string-to-enum,kwinrules.upd:use-virtual-desktop-ids
[1]
Description=Window settings for Steam Keyboard
above=true
aboverule=2
acceptfocusrule=2
skiptaskbar=true
skiptaskbarrule=2
title=Steam Keyboard
types=256
typerule=2
wmclass=steamwebhelper steam
wmclasscomplete=true
wmclassmatch=2
[9bd6e503-ac60-4e7b-9131-0b10c84b37eb]
Description=Window settings for Steam Keyboard
above=true
aboverule=2
title=Steam Keyboard
titlematch=2
type=16
typerule=2
wmclass=steam
wmclasscomplete=true
wmclassmatch=2
[General]
count=1
rules=1
@@ -0,0 +1,2 @@
[Theme]
name=Vapor
@@ -0,0 +1,20 @@
[AC][Display]
DimDisplayWhenIdle=false
TurnOffDisplayWhenIdle=false
[AC][SuspendAndShutdown]
AutoSuspendAction=0
[Battery][Display]
DimDisplayWhenIdle=false
TurnOffDisplayWhenIdle=false
[Battery][SuspendAndShutdown]
AutoSuspendAction=0
[LowBattery][Display]
DimDisplayWhenIdle=false
TurnOffDisplayWhenIdle=false
[LowBattery][SuspendAndShutdown]
AutoSuspendAction=0
@@ -0,0 +1,2 @@
[General]
systemdBoot=false
@@ -0,0 +1,92 @@
#!/usr/bin/python3
from gi.repository import Gio, GLib
XML = """
<node>
<interface name="org.freedesktop.PolicyKit1.Authority">
<method name="EnumerateActions">
<arg type="s" name="locale" direction="in"/>
<arg type="a(ssssssuuua{ss})" name="action_descriptions" direction="out"/>
</method>
<method name="CheckAuthorization">
<arg type="(sa{sv})" name="subject" direction="in"/>
<arg type="s" name="action_id" direction="in"/>
<arg type="a{ss}" name="details" direction="in"/>
<arg type="u" name="flags" direction="in"/>
<arg type="s" name="cancellation_id" direction="in"/>
<arg type="(bba{ss})" name="result" direction="out"/>
</method>
<method name="CancelCheckAuthorization">
<arg type="s" name="cancellation_id" direction="in"/>
</method>
<method name="RegisterAuthenticationAgent">
<arg type="(sa{sv})" name="subject" direction="in"/>
<arg type="s" name="locale" direction="in"/>
<arg type="s" name="object_path" direction="in"/>
</method>
<method name="RegisterAuthenticationAgentWithOptions">
<arg type="(sa{sv})" name="subject" direction="in"/>
<arg type="s" name="locale" direction="in"/>
<arg type="s" name="object_path" direction="in"/>
<arg type="a{sv}" name="options" direction="in"/>
</method>
<method name="UnregisterAuthenticationAgent">
<arg type="(sa{sv})" name="subject" direction="in"/>
<arg type="s" name="object_path" direction="in"/>
</method>
<method name="AuthenticationAgentResponse">
<arg type="s" name="cookie" direction="in"/>
<arg type="(sa{sv})" name="identity" direction="in"/>
</method>
<method name="AuthenticationAgentResponse2">
<arg type="u" name="uid" direction="in"/>
<arg type="s" name="cookie" direction="in"/>
<arg type="(sa{sv})" name="identity" direction="in"/>
</method>
<method name="EnumerateTemporaryAuthorizations">
<arg type="(sa{sv})" name="subject" direction="in"/>
<arg type="a(ss(sa{sv})tt)" name="temporary_authorizations" direction="out"/>
</method>
<method name="RevokeTemporaryAuthorizations">
<arg type="(sa{sv})" name="subject" direction="in"/>
</method>
<method name="RevokeTemporaryAuthorizationById">
<arg type="s" name="id" direction="in"/>
</method>
<signal name="Changed"/>
<property type="s" name="BackendName" access="read"/>
<property type="s" name="BackendVersion" access="read"/>
<property type="u" name="BackendFeatures" access="read"/>
</interface>
</node>
"""
REPLIES = {
"EnumerateActions": GLib.Variant("(a(ssssssuuua{ss}))", ([],)),
"CheckAuthorization": GLib.Variant("((bba{ss}))", ((True, False, {}),)),
"EnumerateTemporaryAuthorizations": GLib.Variant("(a(ss(sa{sv})tt))", ([],)),
}
PROPERTIES = {
"BackendName": GLib.Variant("s", "droiddeck"),
"BackendVersion": GLib.Variant("s", "1"),
"BackendFeatures": GLib.Variant("u", 1),
}
def call(connection, sender, path, interface, method, parameters, invocation):
invocation.return_value(REPLIES.get(method))
def get_property(connection, sender, path, interface, name):
return PROPERTIES.get(name)
def acquired(connection, name):
info = Gio.DBusNodeInfo.new_for_xml(XML).interfaces[0]
connection.register_object("/org/freedesktop/PolicyKit1/Authority", info, call, get_property, None)
loop = GLib.MainLoop()
Gio.bus_own_name(Gio.BusType.SYSTEM, "org.freedesktop.PolicyKit1", Gio.BusNameOwnerFlags.NONE,
acquired, None, lambda *a: loop.quit())
loop.run()
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=Return to Gaming Mode
Comment=Log out of the desktop and go back to Steam
Exec=dbus-send --session --type=method_call --dest=org.kde.Shutdown /Shutdown org.kde.Shutdown.logout
Icon=steamdeck-gaming-return
Terminal=false
Type=Application
StartupNotify=false
NoDisplay=true
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Steam Big Picture
Comment=The Steam client, full screen with a controller
Exec=/usr/local/bin/steamdeck-steam bigpicture
Icon=steam
Terminal=false
Categories=Game;
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Steam
Comment=The Steam client, in a window
Exec=/usr/local/bin/steamdeck-steam desktop
Icon=steam
Terminal=false
Categories=Game;
@@ -0,0 +1,119 @@
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
[ColorEffects:Inactive]
ChangeSelectionColor=true
Color=112,111,110
ColorAmount=0.025
ColorEffect=2
ContrastAmount=0.1
ContrastEffect=2
Enable=false
IntensityAmount=0
IntensityEffect=0
[Colors:Button]
BackgroundAlternate=77,77,77
BackgroundNormal=36,39,44
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=239,240,241
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[Colors:Complementary]
BackgroundAlternate=59,64,69
BackgroundNormal=49,54,59
DecorationFocus=30,146,255
DecorationHover=61,174,230
ForegroundActive=246,116,0
ForegroundInactive=175,176,179
ForegroundLink=61,174,230
ForegroundNegative=237,21,21
ForegroundNeutral=201,206,59
ForegroundNormal=239,240,241
ForegroundPositive=17,209,22
ForegroundVisited=61,174,230
[Colors:Selection]
BackgroundAlternate=29,153,243
BackgroundNormal=86,159,204
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=252,252,252
ForegroundInactive=239,240,241
ForegroundLink=253,188,75
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=31,31,38
ForegroundPositive=126,166,75
ForegroundVisited=189,195,199
[Colors:Tooltip]
BackgroundAlternate=77,77,77
BackgroundNormal=36,39,44
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=239,240,241
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[Colors:View]
BackgroundAlternate=26,33,42
BackgroundNormal=21,28,35
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=239,240,241
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[Colors:Window]
BackgroundAlternate=77,77,77
BackgroundNormal=36,39,44
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=241,241,242
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[General]
ColorScheme=Breeze Dark
Name=Vapor
shadeSortColumn=true
[KDE]
contrast=4
[WM]
activeBackground=36,39,47
activeBlend=255,255,255
activeForeground=239,240,241
inactiveBackground=36,39,44
inactiveBlend=74,83,101
inactiveForeground=127,140,141
@@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.bluez.obex
Exec=/bin/false
@@ -0,0 +1 @@
opengl
@@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.freedesktop.PackageKit
Exec=/usr/local/bin/droiddeck-root /usr/libexec/packagekitd
@@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.freedesktop.PolicyKit1
Exec=/usr/local/bin/droiddeck-polkitd
@@ -0,0 +1,6 @@
<svg id="svg2" height="64" style="" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" sodipodi:docname="deck_icon.svg" inkscape:version="1.2-dev (d2dd25d878, 2022-02-01, custom)" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg">
<path id="path42220" d="m 32 4 v 10 a 18 18 0 0 1 18 18 a 18 18 0 0 1 -18 18 v 10 a 28 28 0 0 0 28 -28 a 28 28 0 0 0 -28 -28 z" style="fill:#fff;fill-rule:evenodd"/>
<circle id="path43518" cx="32" cy="32" r="14" style="fill:#1a9fff;fill-rule:evenodd"/>
<path id="path52048" d="m 32 22 a 2 2 0 0 0 -1.4140625 .5859375 l -8 8 a 2.0002 2.0002 0 0 0 0 2.828125 l 8 8 a 2 2 0 0 0 2.828125 0 a 2 2 0 0 0 0 -2.828125 l -4.5859375 -4.5859375 h 11.171875 a 2 2 0 0 0 2 -2 a 2 2 0 0 0 -2 -2 h -11.171875 l 4.5859375 -4.5859375 a 2 2 0 0 0 0 -2.828125 a 2 2 0 0 0 -1.4140625 -.5859375 z" style="fill:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:0"/>
<g id="path89696" style=""/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" version="1.1">
<circle style="opacity:0.2" cx="32" cy="33" r="28"/>
<path style="fill:#1955aa" d="M 60,32 C 60,47.463973 47.463973,60 32,60 18.913155,60 7.9232734,51.021833 4.853777,38.888922 4.2962258,36.685069 6.0625889,38.217811 6.0625889,35.840683 6.0625889,35.576732 4.0036523,31.472952 4.010909,31.210755 4.4288017,16.111731 16.799978,4 32,4 47.463973,4 60,16.536027 60,32 Z"/>
<path style="opacity:0.2" d="M 40,16 A 11,11 0 0 0 29,27 11,11 0 0 0 29.011719,27.246094 L 23.753906,36.009766 A 8.5,8.5 0 0 0 23.5,36 8.5,8.5 0 0 0 17.837891,38.171875 L 4.046875,32.078125 A 28,28 0 0 0 4,33 28,28 0 0 0 4.9375,40.123047 L 15.003906,44.572266 A 8.5,8.5 0 0 0 23.5,53 8.5,8.5 0 0 0 32,44.5 8.5,8.5 0 0 0 31.966797,43.849609 L 41.373047,37.904297 A 11,11 0 0 0 51,27 11,11 0 0 0 40,16 Z M 40,20 A 7,7 0 0 1 47,27 7,7 0 0 1 40,34 7,7 0 0 1 33,27 7,7 0 0 1 40,20 Z M 40,22 A 5,5 0 0 0 35,27 5,5 0 0 0 40,32 5,5 0 0 0 45,27 5,5 0 0 0 40,22 Z M 23.5,39 A 5.5,5.5 0 0 1 29,44.5 5.5,5.5 0 0 1 23.5,50 5.5,5.5 0 0 1 18.207031,45.986328 L 22.085938,47.701172 A 3.50035,3.50035 0 1 0 24.914062,41.298828 L 21.035156,39.583984 A 5.5,5.5 0 0 1 23.5,39 Z"/>
<path style="fill:#ffffff" d="M 30.6,23.6 34.8,33.4 44.7,34.8 29.2,44.6 V 37.6 H 22.2 Z"/>
<path style="fill:#ffffff" d="M 40 15 A 11 11 0 0 0 29 26 A 11 11 0 0 0 40 37 A 11 11 0 0 0 51 26 A 11 11 0 0 0 40 15 z M 40 19 A 7 7 0 0 1 47 26 A 7 7 0 0 1 40 33 A 7 7 0 0 1 33 26 A 7 7 0 0 1 40 19 z"/>
<path style="fill:#ffffff" d="M 23.5 35 A 8.5 8.5 0 0 0 15 43.5 A 8.5 8.5 0 0 0 23.5 52 A 8.5 8.5 0 0 0 32 43.5 A 8.5 8.5 0 0 0 23.5 35 z M 23.5 38 A 5.5 5.5 0 0 1 29 43.5 A 5.5 5.5 0 0 1 23.5 49 A 5.5 5.5 0 0 1 18 43.5 A 5.5 5.5 0 0 1 23.5 38 z"/>
<circle style="fill:#ffffff" cx="40" cy="26" r="5"/>
<path style="fill:#ffffff" d="M 4.046875 31.078125 A 28 28 0 0 0 4 32 A 28 28 0 0 0 4.9375 39.123047 L 22.085938 46.701172 A 3.50035 3.50035 0 1 0 24.914062 40.298828 L 4.046875 31.078125 z"/>
<path style="opacity:0.1;fill:#ffffff" d="M 32,4 C 17.100366,4 4.9180811,15.636956 4.0488281,30.318359 4.0459379,30.367175 4.08106,30.473412 4.1113281,30.572266 5.3425337,16.245714 17.354447,5 32,5 47.296335,5 59.718596,17.267575 59.986328,32.5 59.989262,32.333062 60,32.167638 60,32 60,16.536027 47.463973,4 32,4 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -0,0 +1,12 @@
<svg id="svg2" height="64" style="" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" sodipodi:docname="start.svg" inkscape:version="1.2-dev (d2dd25d878, 2022-02-01, custom)" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg">
<style type="text/css" id="current-color-scheme">
.ColorScheme-Text {
color:#ffffff;
}
</style>
<g id="start-here-kde">
<rect style="fill:#808080;fill-rule:evenodd;opacity:0.000001" id="rect1101" width="64" height="64" x="0" y="0" />
<path id="path42220" d="m 32 4 v 10 a 18 18 0 0 1 18 18 a 18 18 0 0 1 -18 18 v 10 a 28 28 0 0 0 28 -28 a 28 28 0 0 0 -28 -28 z" style="fill:currentColor;fill-rule:evenodd" class="ColorScheme-Text" />
<circle id="path43518" cx="32" cy="32" r="14" style="fill:#1a9fff;fill-rule:evenodd" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 962 B

@@ -0,0 +1,94 @@
[Background]
Color=21,27,33
[BackgroundFaint]
Color=22,32,45
[BackgroundIntense]
Color=19,46,69
[Color0]
Color=21,27,33
[Color0Faint]
Color=49,54,59
[Color0Intense]
Color=127,140,141
[Color1]
Color=237,21,21
[Color1Faint]
Color=120,50,40
[Color1Intense]
Color=192,57,43
[Color2]
Color=71,146,176
[Color2Faint]
Color=52,108,146
[Color2Intense]
Color=171,207,228
[Color3]
Color=246,116,0
[Color3Faint]
Color=182,86,25
[Color3Intense]
Color=253,188,75
[Color4]
Color=29,153,243
[Color4Faint]
Color=27,102,143
[Color4Intense]
Color=61,174,233
[Color5]
Color=155,89,182
[Color5Faint]
Color=97,74,115
[Color5Intense]
Color=142,68,173
[Color6]
Color=227,255,194
[Color6Faint]
Color=91,118,56
[Color6Intense]
Color=141,189,85
[Color7]
Color=239,240,241
[Color7Faint]
Color=99,104,109
[Color7Intense]
Color=252,252,252
[Foreground]
Color=239,240,241
[ForegroundFaint]
Color=220,230,231
[ForegroundIntense]
Color=252,252,252
[General]
Description=SteamOS
Opacity=0.9
Wallpaper=
@@ -0,0 +1,6 @@
[Appearance]
ColorScheme=Vapor
[General]
Name=Vapor
Parent=FALLBACK/
@@ -0,0 +1,19 @@
Third-party files in DroidDeck's Ubuntu runtime (tools/ubuntu/overlay):
- Vapor (color scheme, Plasma theme, look-and-feel package, Konsole profile and color scheme) and the
steamdeck-gaming-return / distributor-logo-steamdeck icons: Valve's steamdeck-kde-presets
(https://github.com/Jovian-Experiments/steamdeck-kde-presets), GPL-2.0-or-later (look-and-feel)
and GPL-3.0 (Plasma theme), as their metadata states. The look-and-feel package's defaults, setup
scripts and layout were adapted for DroidDeck; its Plasma 5 splash screen was left out.
- steam.svg: Papirus icon theme (https://github.com/PapirusDevelopmentTeam/papirus-icon-theme),
GPL-3.0.
- KWin (kwin-wayland and related packages, version +droiddeck): Kubuntu's KWin source package,
GPL-2.0-or-later, rebuilt with tools/ubuntu/patches/kwin. Corresponding source: `apt source kwin`
plus those patches (https://github.com/Droid-Deck/DroidDeck/tree/main/tools/ubuntu/patches/kwin).
- Mesa (packages with version +droiddeck): Ubuntu's Mesa source package, MIT and others, rebuilt with
the freedreno KGSL kernel interface enabled (tools/ubuntu/build-debs.sh). Corresponding source:
`apt source mesa`.
Everything else in the runtime is Ubuntu's own packages, under their own licenses
(/usr/share/doc/*/copyright).
@@ -0,0 +1,147 @@
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
[ColorEffects:Inactive]
ChangeSelectionColor=true
Color=112,111,110
ColorAmount=0.025
ColorEffect=2
ContrastAmount=0.1
ContrastEffect=2
Enable=false
IntensityAmount=0
IntensityEffect=0
[Colors:Button]
BackgroundAlternate=77,77,77
BackgroundNormal=36,39,44
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=239,240,241
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[Colors:Complementary]
BackgroundAlternate=59,64,69
BackgroundNormal=49,54,59
DecorationFocus=30,146,255
DecorationHover=61,174,230
ForegroundActive=246,116,0
ForegroundInactive=175,176,179
ForegroundLink=61,174,230
ForegroundNegative=237,21,21
ForegroundNeutral=201,206,59
ForegroundNormal=239,240,241
ForegroundPositive=17,209,22
ForegroundVisited=61,174,230
[Colors:Selection]
BackgroundAlternate=29,153,243
BackgroundNormal=86,159,204
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=252,252,252
ForegroundInactive=239,240,241
ForegroundLink=253,188,75
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=31,31,38
ForegroundPositive=126,166,75
ForegroundVisited=189,195,199
[Colors:Tooltip]
BackgroundAlternate=77,77,77
BackgroundNormal=36,39,44
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=239,240,241
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[Colors:View]
BackgroundAlternate=26,33,42
BackgroundNormal=21,28,35
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=239,240,241
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[Colors:Window]
BackgroundAlternate=77,77,77
BackgroundNormal=36,39,44
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=241,241,242
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[Colors:Header]
BackgroundAlternate=77,77,77
BackgroundNormal=36,39,44
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=241,241,242
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[Colors:Header][Inactive]
BackgroundAlternate=77,77,77
BackgroundNormal=36,39,44
DecorationFocus=52,108,146
DecorationHover=85,161,205
ForegroundActive=61,174,233
ForegroundInactive=189,195,199
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=199,130,61
ForegroundNormal=241,241,242
ForegroundPositive=126,166,75
ForegroundVisited=127,140,141
[General]
ColorScheme=Vapor
Name=Vapor
shadeSortColumn=true
[KDE]
contrast=4
[WM]
activeBackground=36,39,47
activeBlend=255,255,255
activeForeground=239,240,241
inactiveBackground=36,39,44
inactiveBlend=74,83,101
inactiveForeground=127,140,141
@@ -0,0 +1,13 @@
{
"KPlugin": {
"Authors": [{ "Name": "Valve" }],
"Category": "Plasma Theme",
"Description": "Vapor - SteamOS Theme based on KDE Breeze and Breath",
"EnabledByDefault": true,
"Id": "Vapor",
"License": "GPL-3.0",
"Name": "Vapor",
"Version": "0.0.17"
},
"X-Plasma-API": "5.0"
}
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg id="svg2" version="1.1" viewBox="0 0 173 56.000004" sodipodi:docname="plasmoidheading.svg" inkscape:version="1.2-dev (3978b257e3, 2021-12-14, custom)" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs50" />
<sodipodi:namedview id="namedview48" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" showgrid="true" inkscape:zoom="7.5562581" inkscape:cx="71.265432" inkscape:cy="14.292789" inkscape:window-width="1920" inkscape:window-height="1007" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg2" inkscape:blackoutopacity="0.0">
<inkscape:grid type="xygrid" id="grid4266" />
</sodipodi:namedview>
<style id="current-color-scheme" type="text/css">
.ColorScheme-Text {
color:#232629;
}
.ColorScheme-Background {
color:#eff0f1;
}
.ColorScheme-ViewBackground {
color:#ffffff;
}
</style>
<path id="hint-stretch-borders" d="m-7-7h5v5h-5z" opacity=".6" />
<g id="header-topleft">
<path id="path1780" class="ColorScheme-Background" fill="currentColor" d="M 16 6 C 14.338 6 13 7.338 13 9 L 13 12 L 19 12 L 19 6 L 16 6 z " opacity=".75" />
<path id="rect20523-3" class="ColorScheme-ViewBackground" style="fill:currentColor;fill-rule:evenodd;fill-opacity:.5" d="M 16 6 C 14.3774542034 6 13.0653658941 7.27584226003 13.00390625 8.8828125 C 13.0641327208 7.82972546125 13.9313095588 7 15 7 L 19 7 L 19 6 L 16 6 z " />
<path id="rect20523-3" style="fill:#fff;fill-rule:evenodd;fill-opacity:.15" d="M 16 6 C 14.3774542034 6 13.0653658941 7.27584226003 13.00390625 8.8828125 C 13.0641327208 7.82972546125 13.9313095588 7 15 7 L 19 7 L 19 6 L 16 6 z " />
</g>
<g id="header-top">
<path id="path1066" class="ColorScheme-Background" transform="rotate(-90)" d="m-12 19h6v32h-6z" fill="currentColor" opacity=".75" />
<rect id="rect934" x="19" y="6" width="32" height="1" ry="0" class="ColorScheme-ViewBackground" style="fill:currentColor;fill-rule:evenodd;fill-opacity:.5" />
<rect id="rect934" x="19" y="6" width="32" height="1" ry="0" style="fill:#fff;fill-rule:evenodd;fill-opacity:.15" />
</g>
<g id="header-topright">
<path id="path1785" class="ColorScheme-Background" fill="currentColor" d="M 51 6 L 51 12 L 57 12 L 57 9 C 57 7.338 55.662 6 54 6 L 51 6 z " opacity=".75" />
<path id="rect20523-3-7" class="ColorScheme-ViewBackground" style="fill:currentColor;fill-rule:evenodd;fill-opacity:.5" d="m 54,6 c 1.6225457966,0 2.9346341059,1.27584226003 2.99609375,2.8828125 C 56.9358672792,7.82972546125 56.0686904412,7 55,7 H 51 V 6 Z" />
<path id="rect20523-3-7" style="fill:#fff;fill-opacity:.15;fill-rule:evenodd" d="m 54,6 c 1.6225457966,0 2.9346341059,1.27584226003 2.99609375,2.8828125 C 56.9358672792,7.82972546125 56.0686904412,7 55,7 H 51 V 6 Z" />
</g>
<path id="header-left" class="ColorScheme-Background" transform="scale(-1)" d="m-19-44h6v32h-6z" fill="currentColor" opacity=".75" />
<path id="header-center" class="ColorScheme-Background" d="m19 12h32v32h-32z" fill="currentColor" opacity=".75" />
<path id="header-right" class="ColorScheme-Background" d="m51 12h6v32h-6z" fill="currentColor" opacity=".75" />
<g id="header-bottomleft" fill="currentColor">
<path id="path3182" class="ColorScheme-Background" d="m 19,50 v -6 h -6 v 6 z" opacity="0.75" fill="currentColor" sodipodi:nodetypes="ccccc" />
<path id="path3184" class="ColorScheme-Text" d="m19 50v-1h-4l-2-2e-5v1l2 2e-5h1z" fill-rule="evenodd" opacity=".15" fill="currentColor" />
</g>
<g id="header-bottom" fill="currentColor">
<path id="rect3152" class="ColorScheme-Background" transform="rotate(90)" d="m44-51h6v32h-6z" opacity=".75" fill="currentColor" />
<path id="rect3154" class="ColorScheme-Text" transform="rotate(90)" d="m49-51h1v32h-1z" opacity=".15" fill="currentColor" />
</g>
<g id="header-bottomright" fill="currentColor">
<path id="path3176" class="ColorScheme-Background" d="m 57,44 h -6 v 6 h 6 z" opacity="0.75" fill="currentColor" sodipodi:nodetypes="ccccc" />
<path id="path3178" class="ColorScheme-Text" d="m57 49h-6v1h6c0-1-2e-5 0 0-1z" fill-rule="evenodd" opacity=".15" fill="currentColor" />
</g>
<g id="footer-topleft" fill="currentColor">
<path id="path3182-1" class="ColorScheme-Background" d="m 67,6 v 6 H 61 V 6 Z" opacity="0.75" fill="currentColor" sodipodi:nodetypes="ccccc" />
<path id="path3184-8" class="ColorScheme-Text" d="m67 6v1h-4l-2 2e-5v-1l2-2e-5h1z" fill-rule="evenodd" opacity=".15" fill="currentColor" />
</g>
<g id="footer-top" fill="currentColor">
<path id="rect3152-0" class="ColorScheme-Background" transform="matrix(0 -1 -1 0 0 0)" d="m-12-99h6v32h-6z" opacity=".75" fill="currentColor" />
<path id="rect3154-9" class="ColorScheme-Text" transform="matrix(0 -1 -1 0 0 0)" d="m-7-99h1v32h-1z" opacity=".15" fill="currentColor" />
</g>
<g id="footer-topright" fill="currentColor">
<path id="path3176-6" class="ColorScheme-Background" d="M 105,12 H 99 V 6 h 6 z" opacity="0.75" fill="currentColor" sodipodi:nodetypes="ccccc" />
<path id="path3178-2" class="ColorScheme-Text" d="m105 7h-6v-1h6c0 1-2e-5 0 0 1z" fill-rule="evenodd" opacity=".15" fill="currentColor" />
</g>
<path id="footer-left" class="ColorScheme-Background" transform="scale(-1 1)" d="m-67 12h6v32h-6z" fill="currentColor" opacity=".75" />
<path id="footer-center" class="ColorScheme-Background" transform="scale(1 -1)" d="m67-44h32v32h-32z" fill="currentColor" opacity=".75" />
<path id="footer-right" class="ColorScheme-Background" transform="scale(1 -1)" d="m99-44h6v32h-6z" fill="currentColor" opacity=".75" />
<path id="footer-bottomleft" opacity=".75" class="ColorScheme-Background" fill="currentColor" d="M 61 44 L 61 47 C 61 48.662 62.338 50 64 50 L 67 50 L 67 44 L 61 44 z " />
<path id="footer-bottom" class="ColorScheme-Background" transform="matrix(0 1 1 0 0 0)" d="m44 67h6v32h-6z" fill="currentColor" opacity=".75" />
<path id="footer-bottomright" class="ColorScheme-Background" fill="currentColor" d="M 99 44 L 99 50 L 102 50 C 103.662 50 105 48.662 105 47 L 105 44 L 99 44 z " opacity=".75" />
<path id="hint-top-margin" d="m33 12h4v6h-4z" fill="#f0f" />
<path id="hint-bottom-margin" d="m33 38h4v6h-4z" fill="#f0f" />
<path id="hint-right-margin" transform="rotate(90)" d="m26-51h4v6h-4z" fill="#f0f" />
<path id="hint-left-margin" transform="rotate(90)" d="m26-25h4v6h-4z" fill="#f0f" />
</svg>

After

Width:  |  Height:  |  Size: 6.8 KiB

@@ -0,0 +1,27 @@
[kdeglobals][KDE]
widgetStyle=Breeze
[kdeglobals][General]
ColorScheme=Vapor
[kdeglobals][Icons]
Theme=breeze-dark
[plasmarc][Theme]
name=Vapor
[kcminputrc][Mouse]
cursorTheme=breeze_cursors
[kwinrc][WindowSwitcher]
LayoutName=org.kde.breeze.desktop
[kwinrc][DesktopSwitcher]
LayoutName=org.kde.breeze.desktop
[kwinrc][org.kde.kdecoration2]
library=org.kde.breeze
[KSplash]
Engine=none
Theme=None
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

@@ -0,0 +1,53 @@
var desktops = desktopsForActivity(currentActivity());
for (var i = 0; i < desktops.length; i++) {
desktops[i].wallpaperPlugin = "org.kde.image";
desktops[i].currentConfigGroup = ["Wallpaper", "org.kde.image", "General"];
desktops[i].writeConfig("Image", "file:///usr/share/wallpapers/DroidDeck");
}
var dock = new Panel;
dock.location = "bottom";
dock.height = 2 * Math.ceil(gridUnit * 2.5 / 2);
var kickoff = dock.addWidget("org.kde.plasma.kickoff");
kickoff.currentConfigGroup = ["Shortcuts"];
kickoff.writeConfig("global", "Alt+F1");
kickoff.currentConfigGroup = ["General"];
kickoff.writeConfig("icon", "distributor-logo-steamdeck");
kickoff.writeConfig("favorites", [
"preferred://browser",
"applications:org.kde.dolphin.desktop",
"applications:org.kde.konsole.desktop",
"applications:org.kde.kate.desktop",
"applications:org.kde.discover.desktop",
"applications:systemsettings.desktop",
]);
var tasks = dock.addWidget("org.kde.plasma.icontasks");
tasks.currentConfigGroup = ["General"];
tasks.writeConfig("launchers", [
"applications:steamdeck-steam.desktop",
"preferred://filemanager",
"preferred://browser",
"applications:org.kde.konsole.desktop",
"applications:org.kde.kate.desktop",
]);
var bar = new Panel;
bar.location = "top";
bar.height = 2 * Math.ceil(gridUnit * 1.6 / 2);
bar.addWidget("org.kde.plasma.pager");
bar.addWidget("org.kde.plasma.panelspacer");
var clock = bar.addWidget("org.kde.plasma.digitalclock");
clock.currentConfigGroup = ["Appearance"];
clock.writeConfig("dateFormat", "isoDate");
clock.writeConfig("showDate", true);
bar.addWidget("org.kde.plasma.panelspacer");
var tray = bar.addWidget("org.kde.plasma.systemtray");
var trayId = tray.readConfig("SystrayContainmentId");
if (trayId) {
var trayContainment = desktopById(trayId);
trayContainment.currentConfigGroup = ["General"];
trayContainment.writeConfig("scaleIconsToFit", true);
}
bar.addWidget("org.kde.plasma.showdesktop");
@@ -0,0 +1,4 @@
applet.wallpaperPlugin = 'org.kde.image'
applet.currentConfigGroup = ["Wallpaper", "org.kde.image", "General"]
applet.writeConfig("Image", "file:///usr/share/wallpapers/DroidDeck")
applet.reloadConfig()
@@ -0,0 +1,3 @@
applet.currentConfigGroup = ["General"]
applet.writeConfig("icon", "distributor-logo-steamdeck")
applet.reloadConfig()
@@ -0,0 +1,6 @@
systemtrayId = applet.readConfig("SystrayContainmentId");
if (systemtrayId) {
const systrayContainer = desktopById(systemtrayId);
systrayContainer.currentConfigGroup = ["General"];
systrayContainer.writeConfig("scaleIconsToFit", true);
}
@@ -0,0 +1,22 @@
{
"KPlugin": {
"Authors": [
{
"Email": "",
"Name": "Valve"
}
],
"Category": "",
"Description": "Vapor - SteamOS theme variant of KDE BreezeDark",
"Id": "com.valve.vapor.desktop",
"License": "GPLv2+",
"Name": "Vapor",
"ServiceTypes": [
"Plasma/LookAndFeel"
],
"Version": "0.01",
"Website": ""
},
"X-KDE-ParentApp": "",
"X-Plasma-MainScript": "defaults"
}
@@ -0,0 +1,11 @@
panels().forEach(function (panel) {
panel.widgets("org.kde.plasma.icontasks").forEach(function (tasks) {
tasks.currentConfigGroup = ["General"];
var launchers = tasks.readConfig("launchers");
if (typeof launchers === "string") launchers = launchers.length ? launchers.split(",") : [];
if (launchers.indexOf("applications:org.kde.kate.desktop") < 0) {
launchers.push("applications:org.kde.kate.desktop");
tasks.writeConfig("launchers", launchers);
}
});
});
@@ -0,0 +1,25 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080">
<defs>
<radialGradient id="bg" cx="960" cy="540" r="1150" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#14213a"/>
<stop offset="0.5" stop-color="#0a1120"/>
<stop offset="1" stop-color="#04060b"/>
</radialGradient>
<radialGradient id="glow" cx="947.21" cy="540.00" r="420" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#1A9FFF" stop-opacity="0.22"/>
<stop offset="1" stop-color="#1A9FFF" stop-opacity="0"/>
</radialGradient>
<mask id="negative-space" maskUnits="userSpaceOnUse" x="-31.98" y="0" width="207.92" height="223.72">
<rect x="-31.98" y="0" width="207.92" height="223.72" fill="#fff"/>
<circle cx="63.98" cy="111.86" r="71.81" fill="#000"/>
<rect x="56.055" y="0" width="15.83" height="45" fill="#000"/>
<rect x="56.055" y="178.72" width="15.83" height="45" fill="#000"/>
</mask>
</defs>
<rect width="1920" height="1080" fill="url(#bg)"/>
<circle cx="947.21" cy="540.00" r="420" fill="url(#glow)"/>
<g transform="translate(844.84 361.02) scale(1.6)">
<path fill="#FFFFFF" mask="url(#negative-space)" d="M-31.98 0H63.97c61.84 0 111.96 50.08 111.96 111.86S125.81 223.72 63.97 223.72H-31.98V0Z"/>
<circle cx="63.98" cy="111.86" r="55.98" fill="#1A9FFF"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

@@ -0,0 +1,8 @@
{
"KPlugin": {
"Authors": [{ "Name": "DroidDeck" }],
"Id": "DroidDeck",
"License": "GPL-3.0-or-later",
"Name": "DroidDeck"
}
}
@@ -0,0 +1 @@
autospawn = no
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
if [ "$(id -u)" != 0 ]; then
skip=0
for arg in "$@"; do
[ "$skip" = 1 ] && { skip=0; continue; }
case $arg in
-o|-t|-c|-a|--option|--target-release|--default-release|--config-file|--host-architecture) skip=1; continue ;;
-*) continue ;;
install|reinstall|remove|purge|upgrade|full-upgrade|dist-upgrade|update|autoremove|autopurge|autoclean|clean|build-dep|satisfy|edit-sources|markauto|unmarkauto|safe-upgrade|forget-new|hold|unhold|keep|keep-all)
exec /usr/local/bin/sudo /usr/bin/apt "$@" ;;
esac
break
done
fi
exec /usr/bin/apt "$@"
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
if [ "$(id -u)" != 0 ]; then
skip=0
for arg in "$@"; do
[ "$skip" = 1 ] && { skip=0; continue; }
case $arg in
-o|-t|-c|-a|--option|--target-release|--default-release|--config-file|--host-architecture) skip=1; continue ;;
-*) continue ;;
install|reinstall|remove|purge|upgrade|full-upgrade|dist-upgrade|update|autoremove|autopurge|autoclean|clean|build-dep|satisfy|edit-sources|markauto|unmarkauto|safe-upgrade|forget-new|hold|unhold|keep|keep-all)
exec /usr/local/bin/sudo /usr/bin/apt-get "$@" ;;
esac
break
done
fi
exec /usr/bin/apt-get "$@"
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
if [ "$(id -u)" != 0 ]; then
skip=0
for arg in "$@"; do
[ "$skip" = 1 ] && { skip=0; continue; }
case $arg in
-o|-t|-c|-a|--option|--target-release|--default-release|--config-file|--host-architecture) skip=1; continue ;;
-*) continue ;;
install|reinstall|remove|purge|upgrade|full-upgrade|dist-upgrade|update|autoremove|autopurge|autoclean|clean|build-dep|satisfy|edit-sources|markauto|unmarkauto|safe-upgrade|forget-new|hold|unhold|keep|keep-all)
exec /usr/local/bin/sudo /usr/bin/aptitude "$@" ;;
esac
break
done
fi
exec /usr/bin/aptitude "$@"
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
while [ $# -gt 0 ]; do
case $1 in
--version) echo "pkexec version 126 (droiddeck)"; exit 0 ;;
--help) echo "usage: pkexec [--user username] [PROGRAM] [ARGUMENTS...]"; exit 0 ;;
--disable-internal-agent|--keep-cwd) shift ;;
--user) [ $# -ge 2 ] || exit 127; case $2 in root|0) ;; *) echo "pkexec: no user $2" >&2; exit 127 ;; esac; shift 2 ;;
--) shift; break ;;
*) break ;;
esac
done
[ $# -gt 0 ] || set -- "$(getent passwd root | cut -d: -f7)"
[ "$(id -u)" = 0 ] && exec "$@"
exec /usr/local/bin/droiddeck-root "$@"
+43
View File
@@ -0,0 +1,43 @@
#!/bin/bash
login=0 command= shell= user= named=0
while [ $# -gt 0 ]; do
case $1 in
-|-l|--login) login=1; shift ;;
-c|--command) [ $# -ge 2 ] || { echo "su: option requires an argument -- 'c'" >&2; exit 1; }; command=$2; shift 2 ;;
--command=*) command=${1#*=}; shift ;;
-s|--shell) [ $# -ge 2 ] || { echo "su: option requires an argument -- 's'" >&2; exit 1; }; shell=$2; shift 2 ;;
--shell=*) shell=${1#*=}; shift ;;
-m|-p|--preserve-environment|-P|--pty|-f|--fast) shift ;;
-h|--help) echo "usage: su [-] [-c command] [-s shell] [root]"; exit 0 ;;
-V|--version) echo "DroidDeck su: runs a root shell inside the DroidDeck desktop"; exit 0 ;;
--) shift; break ;;
-*) echo "su: invalid option -- '${1#-}'" >&2; exit 1 ;;
*) [ "$named" = 1 ] && break; user=$1; named=1; shift ;;
esac
done
if [ "$named" = 0 ] && [ $# -gt 0 ]; then user=$1; shift; fi
user=${user:-root}
me=$(id -un 2>/dev/null)
case $user in
root|0) ;;
"$me")
run=${shell:-${SHELL:-/bin/bash}}
if [ -n "$command" ]; then exec "$run" -c "$command" "$@"; fi
[ "$login" = 1 ] && exec "$run" -l "$@"
exec "$run" "$@"
;;
*) echo "su: user $user does not exist or the user entry does not contain all the required fields" >&2; exit 1 ;;
esac
args=()
[ "$login" = 1 ] && args+=(-i)
if [ -n "$shell" ]; then
if [ -n "$command" ]; then exec /usr/local/bin/sudo "${args[@]}" "$shell" -c "$command" "$@"; fi
exec /usr/local/bin/sudo "${args[@]}" "$shell" "$@"
fi
if [ -n "$command" ]; then
[ $# -eq 0 ] && exec /usr/local/bin/sudo "${args[@]}" -s "$command"
exec /usr/local/bin/sudo "${args[@]}" /bin/bash -c "$command" "$@"
fi
[ $# -gt 0 ] && exec /usr/local/bin/sudo "${args[@]}" /bin/bash "$@"
[ "$login" = 1 ] && exec /usr/local/bin/sudo -i
exec /usr/local/bin/sudo -s
+90
View File
@@ -0,0 +1,90 @@
#!/bin/bash
me=${0##*/}
usage() {
echo "usage: $me [-EHiknsSv] [-u user] [-g group] [-D directory] [--] command [arg ...]"
echo " $me -e file ..."
}
known_user() {
case $1 in
''|root|0|'#0'|"$(id -un 2>/dev/null)"|"#$(id -ru 2>/dev/null)") return 0 ;;
esac
echo "$me: unknown user $1" >&2
exit 1
}
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
login=0 shell=0 edit=0 background=0 dir=
[ "$me" = sudoedit ] && edit=1
while [ $# -gt 0 ]; do
case $1 in
--) shift; break ;;
-h|--help) usage; exit 0 ;;
-V|--version) echo "DroidDeck sudo: runs commands as root inside the DroidDeck desktop"; exit 0 ;;
-l|--list) echo "User $(id -un 2>/dev/null) may run the following commands on $(uname -n):"; echo " (ALL : ALL) ALL"; exit 0 ;;
-v|--validate|-K|--remove-timestamp) exit 0 ;;
-k|--reset-timestamp) shift; [ $# -eq 0 ] && exit 0 ;;
-i|--login) login=1; shift ;;
-s|--shell) shell=1; shift ;;
-e|--edit) edit=1; shift ;;
-b|--background) background=1; shift ;;
-E|--preserve-env|--preserve-env=*|-H|--set-home|-n|--non-interactive|-S|--stdin|-P|--preserve-groups|-A|--askpass|-B|--bell|-N|--no-update) shift ;;
-u|--user|-g|--group) [ $# -ge 2 ] || { usage >&2; exit 1; }; known_user "$2"; shift 2 ;;
--user=*|--group=*) known_user "${1#*=}"; shift ;;
-u*|-g*) known_user "${1:2}"; shift ;;
-D|--chdir) [ $# -ge 2 ] || { usage >&2; exit 1; }; dir=$2; shift 2 ;;
--chdir=*) dir=${1#*=}; shift ;;
-p|--prompt|-C|--close-from|-r|--role|-t|--type|-T|--command-timeout|-R|--chroot) [ $# -ge 2 ] || { usage >&2; exit 1; }; shift 2 ;;
--prompt=*|--close-from=*|--role=*|--type=*|--command-timeout=*) shift ;;
-[A-Za-z][A-Za-z]*)
flags=${1#-}; shift
split=()
while [ -n "$flags" ]; do
split+=("-${flags:0:1}")
case ${flags:0:1} in
u|g|D|p|C|r|t|T|R) [ -n "${flags:1}" ] && split+=("${flags:1}"); flags= ;;
*) flags=${flags:1} ;;
esac
done
set -- "${split[@]}" "$@"
;;
-*) echo "$me: invalid option -- '${1#-}'" >&2; usage >&2; exit 1 ;;
*) break ;;
esac
done
if [ "$edit" = 1 ]; then
[ $# -gt 0 ] || { usage >&2; exit 1; }
editor=${SUDO_EDITOR:-${VISUAL:-${EDITOR:-nano}}}
exec $editor "$@"
fi
export SUDO_USER=${SUDO_USER:-$(id -un 2>/dev/null)}
export SUDO_UID=${SUDO_UID:-$(id -ru 2>/dev/null)}
export SUDO_GID=${SUDO_GID:-$(id -rg 2>/dev/null)}
export SUDO_COMMAND="$*" USER=root LOGNAME=root
[ -z "$dir" ] || cd "$dir" || exit 1
target_shell=$(getent passwd "$(id -un 2>/dev/null)" | cut -d: -f7)
target_shell=${target_shell:-/bin/bash}
if [ "$login" = 1 ]; then
cd "${HOME:-/root}" 2>/dev/null
if [ $# -gt 0 ]; then set -- "$target_shell" -l -c "$*"; else set -- "$target_shell" -l; fi
elif [ "$shell" = 1 ]; then
if [ $# -gt 0 ]; then set -- "${SHELL:-$target_shell}" -c "$*"; else set -- "${SHELL:-$target_shell}"; fi
elif [ $# -eq 0 ]; then
usage >&2
exit 1
elif ! command -v "$1" >/dev/null 2>&1; then
echo "$me: $1: command not found" >&2
exit 1
fi
if [ "$(id -u)" = 0 ]; then
[ "$background" = 1 ] && { "$@" & exit 0; }
exec "$@"
fi
if [ "$background" = 1 ]; then
/usr/local/bin/droiddeck-root "$@" </dev/null &
exit 0
fi
exec /usr/local/bin/droiddeck-root "$@"
+1
View File
@@ -0,0 +1 @@
sudo
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Avahi Zeroconf Browser
Exec=/usr/bin/avahi-discover
Icon=network-wired
NoDisplay=true
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Avahi SSH Server Browser
Exec=/usr/bin/bssh
Icon=network-wired
NoDisplay=true
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Avahi VNC Server Browser
Exec=/usr/bin/bvnc
Icon=network-wired
NoDisplay=true
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Foot Server
Exec=foot --server
Icon=foot
NoDisplay=true
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Foot Client
Exec=footclient
Icon=foot
NoDisplay=true
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Hardware Locality lstopo
Exec=lstopo
Icon=hwloc
NoDisplay=true
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=IBus Preferences
Exec=ibus-setup
Icon=ibus-setup
NoDisplay=true
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Qt V4L2 test Utility
Exec=qv4l2
Icon=qv4l2
NoDisplay=true
@@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Qt V4L2 video capture utility
Exec=qvidcap
Icon=qvidcap
NoDisplay=true
@@ -0,0 +1,22 @@
#!/bin/bash
dir=/usr/share/droiddeck/apt
state=/root/.local/share/droiddeck/apt
[ -r "$dir/system-manual.txt" ] || exit 0
[ -z "${DROIDDECK_APT_RESTORING:-}" ] || exit 0
runtime=$(cat "$dir/runtime-id" 2>/dev/null)
if [ -e /etc/xdg/autostart/droiddeck-apt-restore.desktop ] && [ -s "$state/restored" ] && [ "$(cat "$state/restored")" != "$runtime" ] && [ "$(cat "$state/attempted" 2>/dev/null)" != "$runtime" ]; then
exit 0
fi
mkdir -p "$state/sources" "$state/keyrings" 2>/dev/null || exit 0
manual=$(apt-mark showmanual 2>/dev/null) || exit 0
{ printf '%s\n' "$manual" | grep -vxF -f "$dir/system-manual.txt" || true; } > "$state/packages.txt.tmp" && mv -f "$state/packages.txt.tmp" "$state/packages.txt"
rm -f "$state/sources"/* "$state/keyrings"/* 2>/dev/null
for f in /etc/apt/sources.list /etc/apt/sources.list.d/* /etc/apt/keyrings/* /etc/apt/trusted.gpg.d/* /usr/share/keyrings/*; do
[ -f "$f" ] || continue
grep -qxF "$f $(sha256sum "$f" | cut -d' ' -f1)" "$dir/system-sources.txt" 2>/dev/null && continue
case $f in /etc/apt/sources.list|/etc/apt/sources.list.d/*) to=sources ;; *) to=keyrings ;; esac
name=${f#/etc/apt/}
cp -f "$f" "$state/$to/$(printf '%s' "${name#/}" | tr / _)"
done
[ -s "$state/restored" ] || cat "$dir/runtime-id" > "$state/restored" 2>/dev/null
exit 0
@@ -0,0 +1,62 @@
#!/bin/bash
dir=/usr/share/droiddeck/apt
state=/root/.local/share/droiddeck/apt
log=/root/.cache/droiddeck/apt-restore.log
[ -r "$dir/runtime-id" ] || exit 0
runtime=$(cat "$dir/runtime-id")
[ "$(cat "$state/restored" 2>/dev/null)" = "$runtime" ] && exit 0
[ "$(cat "$state/attempted" 2>/dev/null)" = "$runtime" ] && exit 0
mkdir -p "$state" "${log%/*}"
tries=$(cat "$state/tries" 2>/dev/null)
count=0
[ "${tries% *}" = "$runtime" ] && count=${tries##* }
count=$((count + 1))
echo "$runtime $count" > "$state/tries"
[ "$count" -ge 3 ] && echo "$runtime" > "$state/attempted"
mapfile -t wanted < <(grep -v '^$' "$state/packages.txt" 2>/dev/null)
have_sources=0
for f in "$state"/sources/* "$state"/keyrings/*; do [ -f "$f" ] && have_sources=1; done
if [ ${#wanted[@]} -eq 0 ] && [ "$have_sources" = 0 ]; then
echo "$runtime" > "$state/restored"
exit 0
fi
notify() { notify-send -a DroidDeck -i system-software-update "$@" 2>/dev/null; }
notify "$(droiddeck-text desktop_restore_title)" "$(droiddeck-text desktop_restore_body)"
{
date
ok=1
DROIDDECK_APT_RESTORING=1 /usr/local/bin/sudo /bin/bash -s "$state" <<'ROOT' || ok=0
state=$1
mapfile -t wanted < <(grep -v '^$' "$state/packages.txt" 2>/dev/null)
for f in "$state"/sources/*; do
[ -f "$f" ] || continue
case $(basename "$f") in
sources.list) cp -f "$f" /etc/apt/sources.list ;;
*) cp -n "$f" "/etc/apt/$(basename "$f" | sed 's#^sources.list.d_#sources.list.d/#')" ;;
esac
done
for f in "$state"/keyrings/*; do
[ -f "$f" ] || continue
name=$(basename "$f")
case $name in keyrings_*) mkdir -p /etc/apt/keyrings; cp -n "$f" "/etc/apt/keyrings/${name#keyrings_}" ;; trusted.gpg.d_*) cp -n "$f" "/etc/apt/trusted.gpg.d/${name#trusted.gpg.d_}" ;; usr_share_keyrings_*) mkdir -p /usr/share/keyrings; cp -n "$f" "/usr/share/keyrings/${name#usr_share_keyrings_}" ;; esac
done
apt-get update || exit 1
[ ${#wanted[@]} -eq 0 ] && exit 0
found=() unknown=()
for p in "${wanted[@]}"; do
if apt-cache show "$p" >/dev/null 2>&1; then found+=("$p"); else unknown+=("$p"); fi
done
if [ ${#found[@]} -gt 0 ]; then DEBIAN_FRONTEND=noninteractive apt-get install -y "${found[@]}" || exit 1; fi
if [ ${#unknown[@]} -gt 0 ]; then
printf 'not in any source: %s\n' "${unknown[*]}"
exit 1
fi
ROOT
} >> "$log" 2>&1
if [ "$ok" = 1 ]; then
echo "$runtime" > "$state/restored"
notify "$(droiddeck-text desktop_restore_done_title)" "$(droiddeck-text desktop_restore_done_body)"
else
[ ${#wanted[@]} -eq 0 ] || printf 'sudo apt install %s\n' "${wanted[*]}" >> "$log"
notify "$(droiddeck-text desktop_restore_failed_title)" "$(droiddeck-text desktop_restore_failed_body)"
fi
+259
View File
@@ -0,0 +1,259 @@
alsa-base
alsa-utils
anacron
appstream
aptitude
ark
at-spi2-core
avahi-daemon
baloo6
bc
bind9-dnsutils
bluedevil
bluez
bluez-cups
breeze
breeze-gtk-theme
cups
cups-bsd
cups-client
cups-filters
desktop-file-utils
dolphin
dolphin-plugins
drkonqi
e2fsprogs
elisa
fastfetch
ffmpegthumbs
fonts-liberation
fonts-noto-cjk
fonts-noto-extra-
fonts-noto-ui-core
fonts-noto-ui-extra-
fonts-ubuntu
foot
frameworkintegration6
fwupd-
fwupd-signed-
gdb
genisoimage
ghostscript
gir1.2-gtk-3.0
git
gstreamer1.0-gl
gstreamer1.0-libav
gstreamer1.0-pipewire
gstreamer1.0-plugins-bad
gstreamer1.0-plugins-base
gstreamer1.0-plugins-good
gstreamer1.0-plugins-ugly
gstreamer1.0-tools
gwenview
haruna
htop
im-config
init-system-helpers
iw
kaccounts-providers
kactivitymanagerd
kate
kcalc
kcharselect
kde-cli-tools
kde-config-gtk-style
kde-config-gtk-style-preview
kde-config-screenlocker
kde-config-tablet
kde-config-updates
kde-spectacle
kde-style-oxygen-qt6
kdeconnect
kdegraphics-thumbnailers
kdenetwork-filesharing
kdialog
kgamma
khelpcenter
kimageformat6-plugins
kinfocenter
kio-admin
kio-audiocd
kio-extras
kio-fuse
kio6
kmahjongg
kmenuedit
kmines
konsole
kpat
kscreen
ksshaskpass
ksudoku
ksystemlog
ksystemstats
kubuntu-settings-desktop
kubuntu-wallpapers
kwalletmanager
kwin-addons
kwin-common
kwin-decoration-oxygen
kwin-wayland
kwrited
language-selector-common
layer-shell-qt
libacl1
libapt-pkg7.0
libattr1
libaudit-common
libaudit1
libayatana-appindicator3-1
libbsd0
libcap-ng0
libcrypt1
libdb5.3t64
libdebconfclient0
libedit2
libevent-2.1-7t64
libext2fs2t64
libfcft4t64
libgcrypt20
libglib2.0-bin
libgoogle-perftools4t64
libgpg-error0
libgraphene-1.0-0
libgtk-4-1
libgupnp-igd-1.6-0
libhidapi-hidraw0
libhidapi-libusb0
liblz4-1
libmd0
libmpdec4
libncursesw6
libnice10
libnotify-bin
libpam-modules
libpam-modules-bin
libpam-runtime
libpam0g
libproc2-0
libqca-qt6-plugins
libqt6svg6
libsasl2-modules
libsdl2-2.0-0
libsdl3-0
libsemanage-common
libsemanage2
libsepol2
libsmartcols1
libspa-0.2-bluetooth
libss2
libtcmalloc-minimal4t64
libtinfo6
libturbojpeg0
libunwind8
libutf8proc3
libva-glx2
libva-wayland2
libwebpdecoder3
libxcb-dri2-0
libxcb-screensaver0
libxcb-xf86dri0
libxcb-xtest0
libxcb-xvmc0
libxxhash0
logsave
man-db
mesa-utils
milou
mobile-broadband-provider-info
mount
neochat
network-manager
network-manager-openconnect
network-manager-openvpn
network-manager-pptp
okular
okular-extra-backends
orca
oxygen-sounds
packagekit
pastebinit
phonon4qt6-backend-vlc
phonon4settings
pinentry-qt
pipewire
pipewire-audio
plasma-browser-integration
plasma-calendar-addons
plasma-dataengines-addons
plasma-desktop
plasma-discover
plasma-discover-backend-flatpak
plasma-discover-backend-fwupd-
plasma-discover-backend-snap
plasma-discover-notifier
plasma-disks
plasma-integration
plasma-keyboard
plasma-nm
plasma-pa
plasma-runners-addons
plasma-session-wayland
plasma-systemmonitor
plasma-theme-oxygen
plasma-vault
plasma-wallpapers-addons
plasma-welcome
plasma-widgets-addons
plasma-workspace
plasma-workspace-wallpapers-
plasma5-integration
plocate
policykit-desktop-privileges
polkit-kde-agent-1
power-profiles-daemon
powerdevil
ppa-purge
print-manager
python3-dbus
python3-launchpadlib
python3-setuptools
python3-yaml
qml6-module-org-kde-breeze
qml6-module-org-kde-desktop
qml6-module-org-kde-ksysguard
qml6-module-org-kde-pipewire
qml6-module-qt-labs-folderlistmodel
qml6-module-qt5compat-graphicaleffects
qml6-module-qtqml-xmllistmodel
qt6-image-formats-plugins
qt6-translations-l10n
qttranslations5-l10n
remmina
rfkill
signon-kwallet-extension
signon-plugin-oauth2
signon-ui-qt
signon-ui-service
skanpage
snapd
software-properties-qt
squashfs-tools
synaptic
systemsettings
udisks2
unrar-free
upower
va-driver-all
vim
vulkan-tools
wireplumber
wl-clipboard
wpasupplicant
xclip
xdg-desktop-portal
xdg-desktop-portal-gtk
xdg-desktop-portal-kde
xdg-user-dirs
xsettingsd
zsync
+231
View File
@@ -0,0 +1,231 @@
7zip
apt
base-files
base-passwd
bash
bsdextrautils
bsdutils
bubblewrap
ca-certificates
coreutils
curl
dash
dbus
dbus-daemon
dbus-x11
debconf
debianutils
diffutils
dpkg
file
findutils
flatpak
fontconfig
fonts-dejavu-core
fonts-noto-color-emoji
fonts-noto-core
gamescope
gir1.2-flatpak-1.0
gir1.2-glib-2.0
gnu-coreutils
gnupg-agent
gpgv
grep
gzip
hostname
iproute2
iputils-ping
less
libapparmor1
libarchive-tools
libasound2t64
libasyncns0
libatk-bridge2.0-0t64
libatk1.0-0t64
libatomic1
libatspi2.0-0t64
libavahi-client3
libavahi-common3
libblkid1
libbrotli1
libbz2-1.0
libc-bin
libc-gconv-modules-extra
libc6
libcairo2
libcap2
libcom-err2
libcups2t64
libdatrie1
libdbus-1-3
libdecor-0-0
libdisplay-info3
libdrm2
libegl-mesa0
libegl1
libeis1
libevdev2
libexpat1
libffi8
libflac14
libfmt10
libfontconfig1
libfreetype6
libfribidi0
libgbm1
libgcc-s1
libgdk-pixbuf-2.0-0
libgl1
libgl1-mesa-dri
libgles2
libglib2.0-0t64
libglvnd0
libglx-mesa0
libglx0
libglycin-2-0
libgmp10
libgnutls30t64
libgraphite2-3
libgssapi-krb5-2
libgtk2.0-0t64
libgudev-1.0-0
libharfbuzz0b
libhogweed6t64
libibus-1.0-5
libice6
libidn2-0
libinput10
libjsoncpp26
libk5crypto3
libkeyutils1
libkrb5-3
libkrb5support0
liblcms2-2
libliftoff0
liblua5.4-0
libluajit-5.1-2
liblzma5
libmount1
libmp3lame0
libmpg123-0t64
libmtdev1t64
libnettle8t64
libnghttp2-14
libnm0
libnspr4
libnss-mdns
libnss-myhostname
libnss3
libopenal1
libopenvr-api2
libopus0
libp11-kit0
libpango-1.0-0
libpangocairo-1.0-0
libpangoft2-1.0-0
libpcre2-8-0
libpipewire-0.3-0t64
libpixman-1-0
libpng16-16t64
libpulse0
libsamplerate0
libsdl2-classic
libseat1
libseccomp2
libselinux1
libsm6
libsndfile1
libssh2-1t64
libssl3t64
libstdc++6
libsystemd0
libtasn1-6
libthai0
libudev1
libunistring5
libuuid1
libva2
libvdpau1
libvulkan1
libwacom9
libwayland-client0
libwayland-cursor0
libwayland-egl1
libwayland-server0
libwlroots-0.19
libx11-6
libx11-xcb1
libxau6
libxcb-composite0
libxcb-dri3-0
libxcb-errors0
libxcb-ewmh2
libxcb-icccm4
libxcb-present0
libxcb-render-util0
libxcb-render0
libxcb-res0
libxcb-shm0
libxcb-xfixes0
libxcb-xinput0
libxcb1
libxcomposite1
libxcursor1
libxdamage1
libxdmcp6
libxext6
libxfixes3
libxi6
libxinerama1
libxkbcommon0
libxml2-16
libxmu6
libxrandr2
libxrender1
libxres1
libxss1
libxt6t64
libxtst6
libxxf86vm1
libzstd1
locales
locales-all
login
login.defs
lsof
mawk
mesa-libgallium
mesa-vulkan-drivers
nano
ncurses-base
ncurses-bin
openssl-provider-legacy
passwd
perl-base
procps
psmisc
pulseaudio-utils
python3
python3-gi
python3-zstandard
sed
sensible-utils
strace
sysvinit-utils
tar
tzdata
ubuntu-keyring
unzip
util-linux
util-linux-extra
wayland-utils
wget
x11-utils
x11-xserver-utils
xdg-utils
xkb-data
xwayland
xz-utils
zip
zlib1g
zstd
@@ -0,0 +1,183 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: maxjivi05 <maxjividen@gmail.com>
Date: Wed, 28 Oct 2026 07:28:38 -0400
Subject: [PATCH] Respect nested desktop scale
---
src/backends/wayland/wayland_backend.cpp | 34 +++++++++++++++++++++++-----
src/backends/wayland/wayland_egl_backend.cpp | 4 +++-
src/backends/wayland/wayland_layer.cpp | 2 +-
src/backends/wayland/wayland_output.cpp | 26 ++++++++++++++++----
src/backends/wayland/wayland_output.h | 2 ++
5 files changed, 55 insertions(+), 13 deletions(-)
diff --git a/src/backends/wayland/wayland_backend.cpp b/src/backends/wayland/wayland_backend.cpp
index 557156e..1f88013 100644
--- a/src/backends/wayland/wayland_backend.cpp
+++ b/src/backends/wayland/wayland_backend.cpp
@@ -105,8 +105,10 @@ WaylandInputDevice::WaylandInputDevice(KWayland::Client::Pointer *pointer, Wayla
WaylandOutput *output = m_seat->backend()->findOutput(m_pointer->enteredSurface());
Q_ASSERT(output);
const auto subsurface = m_seat->backend()->findSubSurface(m_pointer->enteredSurface());
- const QPointF absolutePos = output->position() + relativeToSurface
- + (subsurface ? subsurface->position() : QPoint());
+ const QPointF hostPosition = relativeToSurface + (subsurface ? subsurface->position() : QPoint());
+ const QPointF absolutePos = qEnvironmentVariableIsSet("DROIDDECK_NESTED_SCALE")
+ ? output->mapToOutput(hostPosition)
+ : output->position() + hostPosition;
Q_EMIT pointerMotionAbsolute(absolutePos, std::chrono::milliseconds(time), this);
});
connect(pointer, &Pointer::buttonStateChanged, this, [this](quint32 serial, quint32 time, quint32 button, Pointer::ButtonState nativeState) {
@@ -180,7 +182,15 @@ WaylandInputDevice::WaylandInputDevice(KWayland::Client::RelativePointer *relati
, m_relativePointer(relativePointer)
{
connect(relativePointer, &RelativePointer::relativeMotion, this, [this](const QSizeF &delta, const QSizeF &deltaNonAccelerated, quint64 timestamp) {
- Q_EMIT pointerMotion(sizeToPoint(delta), sizeToPoint(deltaNonAccelerated), std::chrono::microseconds(timestamp), this);
+ const auto pointer = m_seat->pointerDevice();
+ const auto output = pointer && pointer->m_pointer
+ ? m_seat->backend()->findOutput(pointer->m_pointer->enteredSurface()) : nullptr;
+ const auto toOutput = [output](const QSizeF &hostDelta) {
+ return output && qEnvironmentVariableIsSet("DROIDDECK_NESTED_SCALE")
+ ? output->mapToOutput(sizeToPoint(hostDelta)) - output->mapToOutput(QPointF())
+ : sizeToPoint(hostDelta);
+ };
+ Q_EMIT pointerMotion(toOutput(delta), toOutput(deltaNonAccelerated), std::chrono::microseconds(timestamp), this);
});
}
@@ -197,13 +207,21 @@ WaylandInputDevice::WaylandInputDevice(KWayland::Client::Touch *touch, WaylandSe
connect(touch, &Touch::sequenceStarted, this, [this](TouchPoint *tp) {
auto o = m_seat->backend()->findOutput(tp->surface());
Q_ASSERT(o);
- const QPointF position = o->position() + tp->position();
+ const auto subsurface = m_seat->backend()->findSubSurface(tp->surface());
+ const QPointF hostPosition = tp->position() + (subsurface ? subsurface->position() : QPoint());
+ const QPointF position = qEnvironmentVariableIsSet("DROIDDECK_NESTED_SCALE")
+ ? o->mapToOutput(hostPosition)
+ : o->position() + tp->position();
Q_EMIT touchDown(tp->id(), position, std::chrono::milliseconds(tp->time()), this);
});
connect(touch, &Touch::pointAdded, this, [this](TouchPoint *tp) {
auto o = m_seat->backend()->findOutput(tp->surface());
Q_ASSERT(o);
- const QPointF position = o->position() + tp->position();
+ const auto subsurface = m_seat->backend()->findSubSurface(tp->surface());
+ const QPointF hostPosition = tp->position() + (subsurface ? subsurface->position() : QPoint());
+ const QPointF position = qEnvironmentVariableIsSet("DROIDDECK_NESTED_SCALE")
+ ? o->mapToOutput(hostPosition)
+ : o->position() + tp->position();
Q_EMIT touchDown(tp->id(), position, std::chrono::milliseconds(tp->time()), this);
});
connect(touch, &Touch::pointRemoved, this, [this](TouchPoint *tp) {
@@ -212,7 +230,11 @@ WaylandInputDevice::WaylandInputDevice(KWayland::Client::Touch *touch, WaylandSe
connect(touch, &Touch::pointMoved, this, [this](TouchPoint *tp) {
auto o = m_seat->backend()->findOutput(tp->surface());
Q_ASSERT(o);
- const QPointF position = o->position() + tp->position();
+ const auto subsurface = m_seat->backend()->findSubSurface(tp->surface());
+ const QPointF hostPosition = tp->position() + (subsurface ? subsurface->position() : QPoint());
+ const QPointF position = qEnvironmentVariableIsSet("DROIDDECK_NESTED_SCALE")
+ ? o->mapToOutput(hostPosition)
+ : o->position() + tp->position();
Q_EMIT touchMotion(tp->id(), position, std::chrono::milliseconds(tp->time()), this);
});
}
diff --git a/src/backends/wayland/wayland_egl_backend.cpp b/src/backends/wayland/wayland_egl_backend.cpp
index 66ae1b2..fb17c31 100644
--- a/src/backends/wayland/wayland_egl_backend.cpp
+++ b/src/backends/wayland/wayland_egl_backend.cpp
@@ -204,7 +204,9 @@ bool WaylandEglCursorLayer::doEndFrame(const Region &renderedDeviceRegion, const
wl_buffer *buffer = m_backend->backend()->importBuffer(m_buffer->buffer());
Q_ASSERT(buffer);
- static_cast<WaylandOutput *>(m_output.get())->cursor()->update(buffer, m_buffer->buffer()->size() / m_output->scale(), (hotspot() / m_output->scale()).toPoint());
+ auto output = static_cast<WaylandOutput *>(m_output.get());
+ output->cursor()->update(buffer, m_buffer->buffer()->size() / output->presentationScale(),
+ (hotspot() / output->presentationScale()).toPoint());
EGLNativeFence releaseFence{m_backend->eglDisplayObject()};
m_swapchain->release(m_buffer, releaseFence.takeFileDescriptor());
diff --git a/src/backends/wayland/wayland_layer.cpp b/src/backends/wayland/wayland_layer.cpp
index 1bc003e..15b1624 100644
--- a/src/backends/wayland/wayland_layer.cpp
+++ b/src/backends/wayland/wayland_layer.cpp
@@ -93,7 +93,7 @@ void WaylandLayer::commit(PresentationMode presentationMode)
// this is a bit annoying, we need a new Wayland protocol
// to do this properly with fractional scaling. Until we
// have that, it may cause blurriness in some cases!
- const Rect logicalTarget = targetRect().scaled(1.0 / m_output->scale()).rounded();
+ const Rect logicalTarget = targetRect().scaled(1.0 / static_cast<WaylandOutput *>(m_output.get())->presentationScale()).rounded();
if (m_viewport) {
m_viewport->setSource(sourceRect());
m_viewport->setDestination(logicalTarget.size());
diff --git a/src/backends/wayland/wayland_output.cpp b/src/backends/wayland/wayland_output.cpp
index e435266..2bc8ee9 100644
--- a/src/backends/wayland/wayland_output.cpp
+++ b/src/backends/wayland/wayland_output.cpp
@@ -312,7 +312,7 @@ bool WaylandOutput::present(const QList<OutputLayer *> &layersToUpdate, const st
m_surface->attachBuffer(buffer);
m_mapped = true;
}
- m_viewport->setDestination(QSize(std::round(modeSize().width() / scale()), std::round(modeSize().height() / scale())));
+ m_viewport->setDestination(QSize(std::round(modeSize().width() / presentationScale()), std::round(modeSize().height() / presentationScale())));
m_surface->setScale(1);
// commit the subsurfaces before the main surface
for (OutputLayer *layer : layersToUpdate) {
@@ -375,9 +375,10 @@ void WaylandOutput::applyChanges(const OutputConfiguration &config)
next.enabled = props->enabled.value_or(m_state.enabled);
next.transform = props->transform.value_or(m_state.transform);
next.position = props->pos.value_or(m_state.position);
- // intentionally ignored, as it would get overwritten
- // with the fractional scale protocol anyways
- // next.scale = props->scale.value_or(m_state.scale);
+ if (qEnvironmentVariableIsSet("DROIDDECK_NESTED_SCALE")) {
+ next.scale = props->scale.value_or(m_state.scale);
+ next.scaleSetting = props->scaleSetting.value_or(m_state.scaleSetting);
+ }
next.desiredModeSize = props->desiredModeSize.value_or(m_state.desiredModeSize);
next.desiredModeRefreshRate = props->desiredModeRefreshRate.value_or(m_state.desiredModeRefreshRate);
next.desiredModeFlags = props->desiredModeFlags.value_or(m_state.desiredModeFlags);
@@ -395,6 +396,19 @@ void WaylandOutput::applyChanges(const OutputConfiguration &config)
setState(next);
}
+qreal WaylandOutput::presentationScale() const
+{
+ return qEnvironmentVariableIsSet("DROIDDECK_NESTED_SCALE") ? m_pendingScale : scale();
+}
+
+QPointF WaylandOutput::mapToOutput(const QPointF &hostPosition) const
+{
+ const QPointF inPanel = hostPosition * presentationScale() / scale();
+ const QSizeF panelSize = QSize(std::round(modeSize().width() / scale()),
+ std::round(modeSize().height() / scale()));
+ return position() + transform().inverted().map(inPanel, panelSize);
+}
+
bool WaylandOutput::isReady() const
{
return m_ready;
@@ -468,7 +482,9 @@ void WaylandOutput::applyConfigure(const QSize &size, quint32 serial)
State next = m_state;
next.modes = {mode};
next.currentMode = mode;
- next.scale = m_pendingScale;
+ if (!qEnvironmentVariableIsSet("DROIDDECK_NESTED_SCALE")) {
+ next.scale = m_pendingScale;
+ }
setState(next);
Q_EMIT m_backend->outputsQueried();
diff --git a/src/backends/wayland/wayland_output.h b/src/backends/wayland/wayland_output.h
index 7c30ce3..d9dcb0c 100644
--- a/src/backends/wayland/wayland_output.h
+++ b/src/backends/wayland/wayland_output.h
@@ -86,6 +86,8 @@ public:
void init(const QSize &pixelSize, qreal scale, bool fullscreen);
+ qreal presentationScale() const;
+ QPointF mapToOutput(const QPointF &hostPosition) const;
bool isReady() const;
KWayland::Client::Surface *surface() const;
WaylandCursor *cursor() const;
@@ -0,0 +1,29 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: maxjivi05 <maxjividen@gmail.com>
Date: Wed, 28 Oct 2026 07:28:38 -0400
Subject: [PATCH] Select explicit nested render node
---
src/backends/wayland/wayland_backend.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/backends/wayland/wayland_backend.cpp b/src/backends/wayland/wayland_backend.cpp
index e07e146..54f5a70 100644
--- a/src/backends/wayland/wayland_backend.cpp
+++ b/src/backends/wayland/wayland_backend.cpp
@@ -455,6 +455,15 @@ bool WaylandBackend::initialize()
if (WaylandClient::LinuxDmabufV1 *dmabuf = m_display->linuxDmabuf()) {
m_drmDevice = DrmDevice::open(dmabuf->mainDevice());
+ if (!m_drmDevice && qEnvironmentVariableIsSet("DROIDDECK_NESTED_SCALE")) {
+ const QStringList nodes = qEnvironmentVariable("KWIN_RENDER_NODES").split(QLatin1Char(':'), Qt::SkipEmptyParts);
+ if (nodes.size() == 1) {
+ m_drmDevice = DrmDevice::open(nodes.constFirst());
+ if (m_drmDevice) {
+ qCWarning(KWIN_WAYLAND_BACKEND) << "Using explicitly selected nested render node" << nodes.constFirst();
+ }
+ }
+ }
if (!m_drmDevice) {
qCWarning(KWIN_WAYLAND_BACKEND) << "Failed to open drm render node" << dmabuf->mainDevice();
}
@@ -0,0 +1,78 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: maxjivi05 <maxjividen@gmail.com>
Date: Wed, 28 Oct 2026 07:28:45 -0400
Subject: [PATCH] Forward nested scroll source
---
src/backends/wayland/wayland_backend.cpp | 42 +++++++++++++++++++++---
1 file changed, 38 insertions(+), 4 deletions(-)
diff --git a/src/backends/wayland/wayland_backend.cpp b/src/backends/wayland/wayland_backend.cpp
index 54f5a70..25bd0d0 100644
--- a/src/backends/wayland/wayland_backend.cpp
+++ b/src/backends/wayland/wayland_backend.cpp
@@ -29,6 +29,9 @@
#include <QAbstractEventDispatcher>
+#include <array>
+#include <memory>
+
#include <drm_fourcc.h>
#include <fcntl.h>
#include <gbm.h>
@@ -123,8 +126,31 @@ WaylandInputDevice::WaylandInputDevice(KWayland::Client::Pointer *pointer, Wayla
}
Q_EMIT pointerButtonChanged(button, state, std::chrono::milliseconds(time), this);
});
- // TODO: Send discreteDelta and source as well.
- connect(pointer, &Pointer::axisChanged, this, [this](quint32 time, Pointer::Axis nativeAxis, qreal delta) {
+ auto axisSource = std::make_shared<PointerAxisSource>(PointerAxisSource::Unknown);
+ auto axisDiscrete = std::make_shared<std::array<qint32, 2>>();
+ connect(pointer, &Pointer::axisSourceChanged, this, [axisSource](Pointer::AxisSource source) {
+ switch (source) {
+ case Pointer::AxisSource::Wheel:
+ *axisSource = PointerAxisSource::Wheel;
+ break;
+ case Pointer::AxisSource::Finger:
+ *axisSource = PointerAxisSource::Finger;
+ break;
+ case Pointer::AxisSource::Continuous:
+ *axisSource = PointerAxisSource::Continuous;
+ break;
+ case Pointer::AxisSource::WheelTilt:
+ *axisSource = PointerAxisSource::WheelTilt;
+ break;
+ default:
+ *axisSource = PointerAxisSource::Unknown;
+ break;
+ }
+ });
+ connect(pointer, &Pointer::axisDiscreteChanged, this, [axisDiscrete](Pointer::Axis nativeAxis, qint32 discreteDelta) {
+ (*axisDiscrete)[nativeAxis == Pointer::Axis::Vertical ? 0 : 1] = discreteDelta * 120;
+ });
+ connect(pointer, &Pointer::axisChanged, this, [this, axisSource, axisDiscrete](quint32 time, Pointer::Axis nativeAxis, qreal delta) {
PointerAxis axis;
switch (nativeAxis) {
case Pointer::Axis::Horizontal:
@@ -136,10 +162,18 @@ WaylandInputDevice::WaylandInputDevice(KWayland::Client::Pointer *pointer, Wayla
default:
Q_UNREACHABLE();
}
- Q_EMIT pointerAxisChanged(axis, delta, 0, PointerAxisSource::Unknown, false, std::chrono::milliseconds(time), this);
+ qint32 &discrete = (*axisDiscrete)[nativeAxis == Pointer::Axis::Vertical ? 0 : 1];
+ Q_EMIT pointerAxisChanged(axis, delta, discrete, *axisSource, false, std::chrono::milliseconds(time), this);
+ discrete = 0;
+ });
+ connect(pointer, &Pointer::axisStopped, this, [this, axisSource](quint32 time, Pointer::Axis nativeAxis) {
+ const PointerAxis axis = nativeAxis == Pointer::Axis::Vertical ? PointerAxis::Vertical : PointerAxis::Horizontal;
+ Q_EMIT pointerAxisChanged(axis, 0, 0, *axisSource, false, std::chrono::milliseconds(time), this);
});
- connect(pointer, &Pointer::frame, this, [this]() {
+ connect(pointer, &Pointer::frame, this, [this, axisSource, axisDiscrete]() {
+ *axisSource = PointerAxisSource::Unknown;
+ axisDiscrete->fill(0);
Q_EMIT pointerFrame(this);
});
@@ -0,0 +1,39 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: maxjivi05 <maxjividen@gmail.com>
Date: Wed, 28 Oct 2026 10:02:00 -0400
Subject: [PATCH] Keep dmabuf tranches that target the main device
---
src/wayland-client/linuxdmabuf.cpp | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/src/wayland-client/linuxdmabuf.cpp b/src/wayland-client/linuxdmabuf.cpp
--- a/src/wayland-client/linuxdmabuf.cpp
+++ b/src/wayland-client/linuxdmabuf.cpp
@@ -130,15 +130,17 @@
drmFreeDevice(&mainDevice);
drmFreeDevice(&trancheDevice);
});
- if (drmGetDeviceFromDevId(feedback->m_mainDeviceId, 0, &mainDevice) != 0
- || drmGetDeviceFromDevId(feedback->m_trancheDeviceId, 0, &trancheDevice) != 0) {
- qCWarning(KWIN_WAYLAND_CLIENT, "drmGetDeviceFromDevId() failed");
- return;
- }
- if (!drmDevicesEqual(mainDevice, trancheDevice)) {
- // TODO take multi GPU handling into account as well
- qCDebug(KWIN_WAYLAND_CLIENT, "Ignoring tranche from non-main device");
- return;
+ if (feedback->m_mainDeviceId != feedback->m_trancheDeviceId) {
+ if (drmGetDeviceFromDevId(feedback->m_mainDeviceId, 0, &mainDevice) != 0
+ || drmGetDeviceFromDevId(feedback->m_trancheDeviceId, 0, &trancheDevice) != 0) {
+ qCWarning(KWIN_WAYLAND_CLIENT, "drmGetDeviceFromDevId() failed");
+ return;
+ }
+ if (!drmDevicesEqual(mainDevice, trancheDevice)) {
+ // TODO take multi GPU handling into account as well
+ qCDebug(KWIN_WAYLAND_CLIENT, "Ignoring tranche from non-main device");
+ return;
+ }
}
struct linux_dmabuf_feedback_v1_table_entry
@@ -0,0 +1,27 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: maxjivi05 <maxjividen@gmail.com>
Date: Wed, 28 Oct 2026 09:30:00 -0400
Subject: [PATCH] turnip/kgsl: keep the GPU when VK_KHR_display is enabled
KGSL has no DRM display node, so the display WSI has nothing to list.
Refusing the whole physical device left instances that enable
VK_KHR_display (vulkaninfo, vkcube, SDL) with no GPU at all.
---
src/freedreno/vulkan/tu_knl_kgsl.cc | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/freedreno/vulkan/tu_knl_kgsl.cc b/src/freedreno/vulkan/tu_knl_kgsl.cc
--- a/src/freedreno/vulkan/tu_knl_kgsl.cc
+++ b/src/freedreno/vulkan/tu_knl_kgsl.cc
@@ -1757,11 +1757,6 @@ tu_kgsl_get_raytracing(int fd)
VkResult
tu_knl_kgsl_load(struct tu_instance *instance, int fd)
{
- if (instance->vk.enabled_extensions.KHR_display) {
- return vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
- "I can't KHR_display");
- }
-
struct tu_physical_device *device = (struct tu_physical_device *)
vk_zalloc(&instance->vk.alloc, sizeof(*device), 8,
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
@@ -0,0 +1,30 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: maxjivi05 <maxjividen@gmail.com>
Date: Wed, 28 Oct 2026 13:30:00 -0400
Subject: [PATCH] turnip/kgsl: accept UBWC 5 and 6
Backport of upstream Mesa's KGSL_UBWC_5_0/6_0 handling so Adreno 8xx
(UBWC 6) is found by the KGSL backend.
---
--- a/src/freedreno/vulkan/msm_kgsl.h 2026-10-28 13:27:57.698671357 -0400
+++ b/src/freedreno/vulkan/msm_kgsl.h 2026-10-28 13:27:57.700490261 -0400
@@ -247,6 +247,8 @@
#define KGSL_UBWC_2_0 2
#define KGSL_UBWC_3_0 3
#define KGSL_UBWC_4_0 4
+#define KGSL_UBWC_5_0 5
+#define KGSL_UBWC_6_0 6
/*
* Reset status values for context
--- a/src/freedreno/vulkan/tu_knl_kgsl.cc 2026-10-28 13:27:57.697821704 -0400
+++ b/src/freedreno/vulkan/tu_knl_kgsl.cc 2026-10-28 13:27:57.710313562 -0400
@@ -1884,6 +1884,8 @@
device->ubwc_config.macrotile_mode = FDL_MACROTILE_4_CHANNEL;
break;
case KGSL_UBWC_4_0:
+ case KGSL_UBWC_5_0:
+ case KGSL_UBWC_6_0:
device->ubwc_config.bank_swizzle_levels = 0x6;
device->ubwc_config.macrotile_mode = FDL_MACROTILE_8_CHANNEL;
break;
@@ -0,0 +1,46 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: maxjivi05 <maxjividen@gmail.com>
Date: Wed, 28 Oct 2026 15:00:00 -0400
Subject: [PATCH] turnip/kgsl: report the KGSL device numbers for WSI
Expose VK_EXT_physical_device_drm with the kgsl-3d0 device numbers so a
nested compositor such as gamescope can advertise dma-buf feedback and
Vulkan swapchains work without the software WSI. Ported from
Droid-Deck/Drivers (patches/scripts/linux_kgsl_wsi.py).
---
--- a/src/freedreno/vulkan/tu_device.cc 2026-10-28 14:41:54.161481991 -0400
+++ b/src/freedreno/vulkan/tu_device.cc 2026-10-28 14:41:54.174757117 -0400
@@ -312,7 +312,7 @@
.EXT_mutable_descriptor_type = true,
.EXT_nested_command_buffer = true,
.EXT_non_seamless_cube_map = true,
- .EXT_physical_device_drm = !is_kgsl(device->instance),
+ .EXT_physical_device_drm = !is_kgsl(device->instance) || device->has_local,
.EXT_pipeline_creation_cache_control = true,
.EXT_pipeline_creation_feedback = true,
.EXT_primitive_topology_list_restart = true,
--- a/src/freedreno/vulkan/tu_knl_kgsl.cc 2026-10-28 14:41:54.159481934 -0400
+++ b/src/freedreno/vulkan/tu_knl_kgsl.cc 2026-10-28 14:41:54.174233883 -0400
@@ -11,6 +11,8 @@
#include <stdint.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
+#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <linux/dma-heap.h>
#define __user
@@ -1907,6 +1909,13 @@
instance->knl = &kgsl_knl_funcs;
+ struct stat kgsl_st;
+ if (fstat(fd, &kgsl_st) == 0 && S_ISCHR(kgsl_st.st_mode)) {
+ device->has_local = device->has_master = true;
+ device->local_major = device->master_major = major(kgsl_st.st_rdev);
+ device->local_minor = device->master_minor = minor(kgsl_st.st_rdev);
+ }
+
result = tu_physical_device_init(device, instance);
if (result != VK_SUCCESS)
goto fail;
+1
View File
@@ -0,0 +1 @@
40
+1
View File
@@ -0,0 +1 @@
0.00 0.00 0.00 1/100 1
+1
View File
@@ -0,0 +1 @@
65534
+1
View File
@@ -0,0 +1 @@
65534
+8
View File
@@ -0,0 +1,8 @@
cpu 0 0 0 0 0 0 0 0 0 0
cpu0 0 0 0 0 0 0 0 0 0 0
intr 0
ctxt 0
btime 0
processes 1
procs_running 1
procs_blocked 0
+1
View File
@@ -0,0 +1 @@
100.00 100.00
+1
View File
@@ -0,0 +1 @@
Linux version 6.1.0 (bannerlator@android) (gcc version 12.0) #1 SMP PREEMPT
+1
View File
@@ -0,0 +1 @@
nr_free_pages 0
+11
View File
@@ -0,0 +1,11 @@
dolphin
kde-cli-tools
konsole
kwin-wayland
pipewire
pipewire-pulse
plasma-desktop
plasma-discover
plasma-workspace
wireplumber
xdg-desktop-portal-kde
+19
View File
@@ -0,0 +1,19 @@
apt
bash
coreutils
dbus-daemon
dpkg
flatpak
fontconfig
gamescope
libegl-mesa0
libgl1-mesa-dri
libluajit-5.1-2
libseat1
libvulkan1
locales-all
mesa-libgallium
mesa-vulkan-drivers
python3
python3-gi
xwayland
+182
View File
@@ -0,0 +1,182 @@
#!/bin/bash
set -euo pipefail
umask 022
here=$(cd "$(dirname "$0")" && pwd)
debs=${1:?directory with the DroidDeck-built .deb files}
runtime_id=${2:?runtime id}
stage=${3:?runtime or desktop}
export DEBIAN_FRONTEND=noninteractive DROIDDECK_APT_RESTORING=1 LANG=C.UTF-8 LC_ALL=C.UTF-8
repo=/var/lib/droiddeck/apt
install_held() {
local held=() deb name
for deb in "$repo"/*.deb; do
name=$(dpkg-deb -f "$deb" Package)
dpkg-query -W -f '${Status}' "$name" 2>/dev/null | grep -q ' ok installed' || continue
held+=("$name=$(dpkg-deb -f "$deb" Version)")
done
[ ${#held[@]} -gt 0 ] || return 0
apt-get install -y --no-install-recommends --allow-downgrades "${held[@]}"
apt-mark hold "${held[@]%%=*}" >/dev/null
}
build_package() {
local name=$1 overlay=$2 protected=$3 summary=$4 pkg depends
pkg=$(mktemp -d)
mkdir -p "$pkg/DEBIAN"
cp -r "$overlay/." "$pkg/"
rm -rf "$pkg/usr/local"
[ -d "$overlay/usr/local" ] && cp -r "$overlay/usr/local/." /usr/local/
(cd "$pkg" && find . -path ./DEBIAN -prune -o \( -type f -o -type l \) -print | sed 's#^\.##') | sort > "$pkg.files"
{
echo '#!/bin/sh'
echo 'set -e'
echo 'if [ "$1" = install ] || [ "$1" = upgrade ]; then'
echo ' :'
while read -r path; do
owner=$(dpkg-query -S "$path" 2>/dev/null | grep -v '^diversion' | cut -d: -f1 | head -1) || true
[ -n "$owner" ] && [ "$owner" != "$name" ] && echo " dpkg-divert --package $name --rename --divert '$path.distrib' --add '$path'"
done < "$pkg.files"
echo 'fi'
} > "$pkg/DEBIAN/preinst"
{
echo '#!/bin/sh'
echo 'set -e'
echo 'if [ "$1" = remove ] || [ "$1" = purge ]; then'
echo " dpkg-divert --list $name | awk '{print \$3}' | while read -r f; do rm -f \"\$f\"; dpkg-divert --package $name --rename --remove \"\$f\"; done"
echo 'fi'
} > "$pkg/DEBIAN/postrm"
chmod 755 "$pkg/DEBIAN/preinst" "$pkg/DEBIAN/postrm"
depends=$(grep -v '^$' "$protected" | paste -sd, | sed 's/,/, /g')
cat > "$pkg/DEBIAN/control" <<EOF
Package: $name
Version: 1.0+${runtime_id//-/.}
Architecture: all
Maintainer: DroidDeck <maxjividen@gmail.com>
Protected: yes
Priority: required
Depends: $depends
Section: admin
Description: $summary
DroidDeck needs these files and packages inside its Ubuntu runtime.
Removing them would break it, so apt refuses to.
EOF
dpkg-deb --root-owner-group -b "$pkg" "/tmp/$name.deb"
dpkg -i "/tmp/$name.deb"
rm -rf "$pkg" "$pkg.files" "/tmp/$name.deb"
}
install_turnip() {
local multiarch=/usr/lib/aarch64-linux-gnu work
source "$here/base.env"
work=$(mktemp -d)
curl -fsSL --proto '=https' --proto-redir '=https' --retry 6 --retry-delay 5 --retry-all-errors -o "$work/turnip.zip" "$DD_TURNIP_URL"
echo "$DD_TURNIP_SHA256 $work/turnip.zip" | sha256sum -c - >/dev/null
unzip -q "$work/turnip.zip" -d "$work/turnip"
dpkg-divert --package droiddeck-runtime --rename --divert "$multiarch/libvulkan_freedreno.so.distrib" --add "$multiarch/libvulkan_freedreno.so"
install -m 644 "$work/turnip/linux/libvulkan_freedreno.so" "$multiarch/libvulkan_freedreno.so"
mkdir -p /usr/share/licenses/dd-turnip
cp -r "$work/turnip/LICENSES" "$work/turnip/NOTICE" "$work/turnip/linux/meta.json" /usr/share/licenses/dd-turnip/
rm -rf "$work"
}
divert_to() {
local path=$1 target=$2 owner=$3
[ -e "$path" ] || [ -L "$path" ] || return 0
dpkg-divert --package "$owner" --rename --divert "$path.distrib" --add "$path"
ln -sf "$target" "$path"
}
record_apt_state() {
mkdir -p /usr/share/droiddeck/apt
apt-mark showmanual > /usr/share/droiddeck/apt/system-manual.txt
for f in /etc/apt/sources.list /etc/apt/sources.list.d/* /etc/apt/keyrings/* /etc/apt/trusted.gpg.d/* /usr/share/keyrings/*; do
[ -f "$f" ] && echo "$f $(sha256sum "$f" | cut -d' ' -f1)"
done > /usr/share/droiddeck/apt/system-sources.txt
}
finish() {
sed -i 's/^Types: deb deb-src$/Types: deb/' /etc/apt/sources.list.d/ubuntu.sources
record_apt_state
apt-get clean
rm -rf /var/lib/apt/lists/* /var/cache/apt/*.bin /var/log/apt/* /var/log/dpkg.log /var/tmp/*
find /tmp -mindepth 1 -maxdepth 1 ! -name droiddeck -exec rm -rf {} +
rm -f /etc/machine-id /var/lib/dbus/machine-id /etc/ssh/ssh_host_*
: > /etc/machine-id
}
if [ "$stage" = runtime ]; then
printf '#!/bin/sh\nexit 101\n' > /usr/sbin/policy-rc.d
chmod 755 /usr/sbin/policy-rc.d
cp -r "$here/apt/." /etc/apt/
sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
echo 'man-db man-db/auto-update boolean false' | debconf-set-selections
apt-get update
apt-get -y full-upgrade
mkdir -p "$repo"
cp "$debs"/*.deb "$repo/"
apt-get install -y --no-install-recommends apt-utils ca-certificates
(cd "$repo" && apt-ftparchive packages . > Packages && apt-ftparchive release . > Release)
echo "deb [trusted=yes lang=none] file:$repo ./" > /etc/apt/sources.list.d/droiddeck.list
built=$(for deb in "$repo"/*.deb; do dpkg-deb -f "$deb" Package; done | sort -u | paste -sd' ')
printf 'Package: %s\nPin: version /\\+droiddeck/\nPin-Priority: 1001\n' "$built" > /etc/apt/preferences.d/droiddeck-built
apt-get update
grep -v '^$' "$here/packages-runtime.txt" | xargs apt-get install -y --no-install-recommends
install_held
build_package droiddeck-runtime "$here/overlay-runtime" "$here/protected-runtime.txt" "DroidDeck's Ubuntu runtime"
update-alternatives --install /usr/bin/sudo sudo /usr/local/bin/sudo 1000
update-alternatives --set sudo /usr/local/bin/sudo
divert_to /usr/bin/su /usr/local/bin/su droiddeck-runtime
multiarch=/usr/lib/aarch64-linux-gnu
ln -sf liblua5.4.so.0 "$multiarch/liblua.so.5.4"
divert_to "$multiarch/gamescope/libVkLayer_FROG_gamescope_wsi_aarch64.so" ../../libVkLayer_FROG_gamescope_wsi_aarch64.so droiddeck-runtime
install_turnip
mkdir -p /var/cache/droiddeck-flatpak /usr/share/droiddeck/apt /etc/droiddeck/proc /etc/droiddeck/empty /root/Desktop
touch /var/cache/droiddeck-flatpak/installed
cp -r "$here/proc/." /etc/droiddeck/proc/
echo "$runtime_id" > /usr/share/droiddeck/apt/runtime-id
echo "LANG=C.UTF-8" > /etc/default/locale
printf 'DroidDeck\n' > /etc/hostname
. /etc/os-release
printf 'NAME="%s"\nVERSION="%s"\nID=%s\nID_LIKE=debian\nPRETTY_NAME="%s"\nVERSION_ID="%s"\nVERSION_CODENAME=%s\nUBUNTU_CODENAME=%s\nHOME_URL="https://github.com/Droid-Deck/DroidDeck"\nSUPPORT_URL="https://github.com/Droid-Deck/DroidDeck/issues"\nBUG_REPORT_URL="https://github.com/Droid-Deck/DroidDeck/issues"\nLOGO=distributor-logo-steamdeck\nVARIANT="DroidDeck"\nVARIANT_ID=droiddeck\n' \
"$NAME" "$VERSION" "$ID" "$PRETTY_NAME" "$VERSION_ID" "$VERSION_CODENAME" "$UBUNTU_CODENAME" > /etc/os-release.droiddeck
dpkg-divert --package droiddeck-runtime --rename --divert /usr/lib/os-release.distrib --add /usr/lib/os-release
mv /etc/os-release.droiddeck /usr/lib/os-release
ln -sf ../usr/lib/os-release /etc/os-release
finish
exit 0
fi
[ "$stage" = desktop ] || { echo "unknown stage $stage" >&2; exit 1; }
sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
install -d -m 0755 /etc/apt/keyrings
install -m 0644 "$here/mozilla.asc" /etc/apt/keyrings/packages.mozilla.org.asc
cat > /etc/apt/sources.list.d/mozilla.sources <<'EOF'
Types: deb
URIs: https://packages.mozilla.org/apt
Suites: mozilla
Components: main
Signed-By: /etc/apt/keyrings/packages.mozilla.org.asc
EOF
cat > /etc/apt/preferences.d/mozilla <<'EOF'
Package: firefox* thunderbird*
Pin: origin packages.mozilla.org
Pin-Priority: 1000
EOF
apt-get update
[[ $(apt-cache policy firefox) == *packages.mozilla.org* ]] || { echo "packages.mozilla.org is unreachable" >&2; exit 1; }
grep -v '^$' "$here/packages-desktop.txt" | xargs apt-get install -y firefox
install_held
build_package droiddeck-desktop "$here/overlay-desktop" "$here/protected-desktop.txt" "DroidDeck's Plasma desktop"
divert_to /usr/bin/pkexec /usr/local/bin/pkexec droiddeck-desktop
divert_to /usr/lib/snapd/snap-confine /usr/local/bin/droiddeck-snap-confine droiddeck-desktop
mkdir -p /snap/bin /var/lib/snapd/desktop/applications
rm -rf /etc/skel/Desktop
finish