mirror of
https://github.com/andrewrabert/jellium-desktop.git
synced 2026-11-17 06:00:29 -05:00
An unofficial desktop client for Jellyfin
https://github.com/andrewrabert/jellium-desktop
- Rust 94.6%
- JavaScript 2.9%
- PowerShell 0.9%
- Shell 0.6%
- Lua 0.5%
- Other 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The `app://` registration declares SCHEME_OPTION_SECURE = 1<<4 and
SCHEME_OPTION_CORS_ENABLED = 1<<6. Per include/internal/cef_types.h
(identical in the pinned CEF 151.3.16 and in 151.3.24),
`cef_scheme_options_t` is:
CEF_SCHEME_OPTION_STANDARD = 1 << 0
CEF_SCHEME_OPTION_LOCAL = 1 << 1
CEF_SCHEME_OPTION_DISPLAY_ISOLATED = 1 << 2
CEF_SCHEME_OPTION_SECURE = 1 << 3
CEF_SCHEME_OPTION_CORS_ENABLED = 1 << 4
CEF_SCHEME_OPTION_CSP_BYPASSING = 1 << 5
CEF_SCHEME_OPTION_FETCH_ENABLED = 1 << 6
so 1<<4 is CORS_ENABLED and 1<<6 is FETCH_ENABLED. The mask that reads
STANDARD|SECURE|LOCAL|CORS_ENABLED has in fact been registering
STANDARD|LOCAL|CORS_ENABLED|FETCH_ENABLED: SECURE was never set, and
FETCH_ENABLED was set by accident.
This is a correctness fix, not a behaviour fix. Measured on Windows with
CEF 151.3.16, before and after: `app://resources/overlay.html` reports
`isSecureContext: true` and has `crypto.subtle` either way — LOCAL already
makes the scheme trustworthy under Chromium's file-URL rules — and
`fetch()` from one app:// path to another fails either way, which is
LOCAL's documented same-URL restriction and not something FETCH_ENABLED
overrides. The overlay, auto-connect and resource loading are unchanged.
So the change is: set the bit the mask always meant to say, and stop
setting a different one by accident. FETCH_ENABLED is kept rather than
dropped — it has been effectively set for the whole life of the `app://`
scheme, so removing it now would be a behaviour change with nothing to
gain; naming it makes the status quo explicit. The comment above the
constants now spells out the whole enum so the next reader does not have
to open the header.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UfcdYJSHcUULe8SU4uKYbG
|
||
| .cargo | ||
| .github | ||
| dev | ||
| resources | ||
| src | ||
| third_party | ||
| .dockerignore | ||
| .gitignore | ||
| .gitmodules | ||
| AGENTS.md | ||
| justfile | ||
| LICENSE | ||
| README.md | ||
Jellium Desktop
An unofficial Jellyfin desktop client built on CEF and mpv.
Downloads
Linux
- AppImage
- Arch Linux (AUR): jellium-desktop-git
- Flatpak (non-Flathub bundle)
macOS
After installing, remove quarantine:
sudo xattr -cr /Applications/Jellium\ Desktop.app
Windows
Development
This project uses just as a command runner.
Available recipes:
[package]
appimage ... # [linux] build AppImage
flatpak ... # [linux] build Flatpak bundle
dmg # [macos] build Apple Disk Image (.dmg)
[maintenance]
outdated # List outdated dependencies
clean # Remove build artifacts
[test]
test # Run tests
[lint]
fmt # Format workspace
fmt-check # Check formatting
clippy # Run clippy
lint # Lint workspace
strict-lint # Strict lint workspace
[build]
build # Build the app
[run]
run *args # Run the app
run-mpv *args # Run the mpv CLI