wuweiran-web/dsh-beauty-persist

wuweiran-web★ 1JavaScript最后同步: 2026-08-21

在 GitHub 打开

让 DSH 桌面端壁纸持久不丢:支持 GIF 动图 & MP4 视频壁纸,内置全屏皮肤中心(上传、预览、一键应用、删除素材),重启、换端口、清缓存都不丢失。Server-side wallpaper & theme persistence for DSH Desktop — animated GIF / MP4 video wallpapers plus a full-screen skin center (upload, preview, apply, delete).

README 摘要

dsh-beauty-persist Persist dsh-dream-skin / dsh-liquid-glass wallpaper & theme across DSH Desktop restarts . Why The DSH Desktop shell launches its web carrier with an OS-assigned random port ( --port 0 ), so the browser origin changes on every restart. Browser localStorage is partitioned per origin — visual state like a wallpaper image (stored by dream-skin / liquid-glass in localStorage ) disappears after each restart , even though it was never deleted. dsh-beauty-persist moves that visual state into a server-side JSON file that is independent of the port. It restores the state on every page load and pushes changes back to the server when you tweak the settings in the UI. What it does - Host half ( lib/index.js ) - Serves GET /beauty-persist/state (current persisted state) and POST /beauty-persist/state (replace persisted state). - Serves GET /beauty-persist/wallpaper.gif (the stored GIF wallpaper) and POST /beauty-persist/wallpaper.gif (upload a new GIF wallpaper). - Injects the persisted state into the index.html response as window. DSH BEAUTY PERSIST STATE , before the boot manifest, so the browser half restores synchronously ahead of dream-skin/liquid-glass initialization. - …

在 GitHub 查看完整 README →
皮肤/UIdeepseek-harnessdshdsh-plugingifmp4skinthemewallpaper

分类