jstone
May 26, 2023, 1:42am
#1
Some applications may need to leverage Chromium for rendering content if pandoc isn’t sufficient, which means apps may need to do either of the following:
A) Bundle Chromium with the flatpak application
B) Call Chromium through flatpak-spawn
Here’s an example:
opened 09:09AM - 24 May 23 UTC
bug
### Description
Export function of Marp-slides will not work in flatpak version… running on Fedora linux.
Does not show any error - just no export.
All works fine in appimage version
### System Information
```bash session
Fedora 38
Gnome 44
Wayland
Flatpak 1.15.4
Obsidian 1.3.3
```
### Sandbox Permissions
```bash session
Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;session-bus;system-bus;ssh-auth;
devices=all;
filesystems=/run/media;home;host-os;host-etc;~/.nvm;/root/.themes;xdg-config/gtk-4.0;~/.icons;/mnt;/var/home/iain/Downloads;~/.themes;~/.config/gtk-4.0;host;/media;/root/.icons;xdg-run/app/com.discordapp.Discord:create;
persistent=~/.ssh;~/.nvm;
[Session Bus Policy]
org.freedesktop.portal.Fcitx=talk
[Environment]
SSH_ASKPASS=/app/libexec/openssh/ssh-askpass
GTK_THEME=Tokyonight-Dark-B
OBSIDIAN_ENABLE_AUTOSCROLL=0
PATH=/usr/bin:/app/bin:/app/texlive/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux
OBSIDIAN_DISABLE_GPU=0
OBSIDIAN_USE_WAYLAND=1
CHROME_PATH=/usr/bin/chromium-browser
XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
OBSIDIAN_DISABLE_GPU_SANDBOX=0
ICON_THEME=Tokyonight-Dark
```
### Logs
```bash session
╰─ flatpak run md.obsidian.Obsidian
Debug: Will run Obsidian with the following arguments: --ozone-platform=wayland --enable-features=UseOzonePlatform,WaylandWindowDecorations
Debug: Additionally, user gave:
2023-05-24 09:09:26 Loading main app package /app/resources/obsidian.asar
LaunchProcess: failed to execvp:
xdg-settings
(obsidian:13): Gtk-WARNING **: 19:09:27.064: Theme parsing error: gtk.css:6703:68: Invalid name of pseudo-class
2023-05-24 09:09:27 Checking for update using Github
2023-05-24 09:09:27 Success.
2023-05-24 09:09:27 Latest version is 1.3.3
2023-05-24 09:09:27 App is up to date.
```
Having Chromium available as an extension would avoid the security issues of calling flatpak-spawn and avoid the maintenance burden of building Chromium.
Adding optional support within an app may look like this:
add-extensions:
org.freedesktop.Sdk.Extension.Chromium:
version: '22.08'
directory: chromium
no-autodownload: true
1 Like