Repository navigation
Install: install.sh installs FFmpeg; host notifies the desktop user when it is missing - #97
Merged
Merged
Conversation
…at startup Without FFmpeg (or without libx264) the desktop stream fails after the viewer connects and it waits on 正在传输画面 with no hint. The release tarball now ships install.sh: it installs into ~/.local, writes the user unit (keeps an existing one), and installs FFmpeg through sudo apt/pacman (Fedora with RPM Fusion) after asking, or with --yes; openSUSE and others get the command printed. The host logs an error at startup when FFmpeg is not runnable; doctor shares the check. CI removes FFmpeg on the runner and checks that install.sh --yes restores it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checked at startup and on every desktop offer. A freedesktop notification (critical urgency) says 无法传输远程画面 with the install command; without a notification daemon the hidden host window opens with the same red line. At most every 5 minutes, and only a notice that reached the person starts that quiet period; the line clears on the next check after FFmpeg is installed. The D-Bus call runs on a blocking thread. CI isolates XDG_CONFIG_HOME for the install.sh test (the runner sets it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
4cd0ad0 新增桌面提示:
实测(Debian 13 Xfce,用临时测试程序链接 🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
缺 FFmpeg(或 FFmpeg 不带 libx264)时,客户端连上后桌面视频起不来,一直停在「正在传输画面」,用户看不到任何提示。tar 包没有安装脚本,用户手动拷贝二进制时没人检查这一点;.deb 已经依赖
ffmpeg。packaging/tarball/install.sh(release 打进 tar 包根目录):~/.local,用 copy + rename 规避 text file busy;--yes)经 sudo 用 apt / pacman 安装;Fedora 只在已启用 RPM Fusion 时安装,openSUSE 和其他发行版只打印命令,不替用户添加第三方源;--no-ffmpeg只检查不安装;FFmpeg 最终仍不可用时退出码为 1。ffmpeg_encoders()。install.sh --yes能装回带 libx264 的 FFmpeg,第二次运行保留已有 unit。验证:
cargo test237 项通过;--no-ffmpeg打印安装命令并以退出码 1 结束,--yes装回 FFmpeg(libx264 在),第二次运行保留已有 unit。测试用的是临时 HOME。🤖 Generated with Claude Code