fix(linux): use updated CEF media permissions (#1623)

<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
This commit is contained in:
Erwan Leboucher authored and GitHub committed 2026-08-04 12:58:06 +00:00
commit 23dd1d4628
6 files changed
+3 -37

No files matched your search

-2
View File
@@ -173,8 +173,6 @@
openssl
dbus
dbus.dev
libpulseaudio
alsa-lib
libayatana-appindicator
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
-1
View File
@@ -18,7 +18,6 @@ android-sdk = "22.0"
"apt:build-essential" = "latest"
"apt:file" = "latest"
"apt:libayatana-appindicator3-dev" = "latest"
"apt:libpulse0" = "latest"
"apt:libgtk-3-dev" = "latest"
"apt:librsvg2-dev" = "latest"
"apt:libsoup-3.0-dev" = "latest"
-2
View File
@@ -31,7 +31,6 @@ overrides:
- libdrm2
- libxkbcommon0
- libasound2
- libpulse0
- libcups2
- xdg-utils
- xwayland
@@ -45,7 +44,6 @@ overrides:
- libdrm
- libxkbcommon
- alsa-lib
- pulseaudio-libs
- cups-libs
- xdg-utils
- xorg-x11-server-Xwayland
-30
View File
@@ -74,35 +74,6 @@ stage_appindicator() {
done
}
# Bundle the PulseAudio client and its audio dependencies for CEF.
stage_pulseaudio() {
local dest="$1" main
mkdir -p "$dest"
main="$(ldconfig -p 2>/dev/null | awk '$1=="libpulse.so.0"{v=$NF} END{print v}')"
[ -n "$main" ] || main="$(find /usr/lib /usr/lib64 /lib -name libpulse.so.0 2>/dev/null | sort | tail -n1)"
if [ -z "$main" ] || [ ! -e "$main" ]; then
echo "warning: libpulse.so.0 not found; PulseAudio disabled in the AppImage" >&2
return 0
fi
local -A seen=()
local -a queue=("$main")
local lib dep
while [ "${#queue[@]}" -gt 0 ]; do
lib="${queue[-1]}"
queue=("${queue[@]:0:${#queue[@]}-1}")
[ -n "$lib" ] && [ -e "$lib" ] || continue
seen["$lib"]=1
while read -r dep; do
[ -n "$dep" ] && [ -z "${seen[$dep]:-}" ] || continue
seen["$dep"]=1
queue+=("$dep")
done < <(ldd "$lib" 2>/dev/null | awk '/=>/ {print $3}' | grep -iE 'pulse|sndfile|asyncns|FLAC|ogg|vorbis|opus|mpg123|mp3lame|lame|speexdsp' || true)
done
for lib in "${!seen[@]}"; do
cp -Lf "$lib" "$dest/$(basename "$lib")"
done
}
write_desktop() {
cat > "$1" <<EOF
[Desktop Entry]
@@ -159,7 +130,6 @@ if [ -n "$APPIMAGETOOL_CMD" ]; then
APPDIR="$WORK/Sable.AppDir"
stage_runtime "$APPDIR/usr/bin"
stage_appindicator "$APPDIR/usr/bin"
stage_pulseaudio "$APPDIR/usr/bin"
# nosuid AppImage mount: drop setuid chrome-sandbox, use the namespace sandbox.
rm -f "$APPDIR/usr/bin/chrome-sandbox"
write_desktop "$APPDIR/sable.desktop"
+1 -1
View File
@@ -6957,7 +6957,7 @@ dependencies = [
[[package]]
name = "tauri-runtime-cef"
version = "0.1.0"
source = "git+https://github.com/SableClient/tauri-runtime-cef?branch=main#23464067ddcfe61239e41faeb26e1ce200ff3242"
source = "git+https://github.com/SableClient/tauri-runtime-cef?branch=main#4f83d8c428bf5560f402c5d2b10aecaad8f244cd"
dependencies = [
"base64 0.22.1",
"cef",
+2 -1
View File
@@ -5,7 +5,7 @@
fn prompt_cef_permission(message: String, tx: std::sync::mpsc::Sender<bool>) {
use gtk::glib;
use gtk::prelude::*;
use gtk::{ButtonsType, DialogFlags, MessageDialog, MessageType, ResponseType};
use gtk::{ButtonsType, DialogFlags, MessageDialog, MessageType, ResponseType, WindowPosition};
// Non-blocking: show() + response signal instead of run().
// dialog.run() blocks the GLib main loop, which CEF's message pump
@@ -19,6 +19,7 @@ fn prompt_cef_permission(message: String, tx: std::sync::mpsc::Sender<bool>) {
&message,
);
dialog.set_title("Permission request");
dialog.set_position(WindowPosition::CenterAlways);
let tx = std::cell::RefCell::new(Some(tx));
dialog.connect_response(move |dlg, response| {