flathub / md.obsidian.Obsidian

https://flathub.org/apps/details/md.obsidian.Obsidian
44 stars 14 forks source link

Marp-slides plugin export function will not work #157

Open imar014 opened 1 year ago

imar014 commented 1 year ago

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

Fedora 38
Gnome 44
Wayland
Flatpak 1.15.4
Obsidian 1.3.3

Sandbox Permissions

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

╰─ 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.
joshua-stone commented 1 year ago

I believe you're using Marp Slides, which is looking for CHROME_PATH to export slides. This is unlikely to work because binaries in the host system's /usr/bin aren't normally accessible from the flatpak sandbox.

I recommend filing an issue to have Marp Slides call xdg-open as part of the export process, unless a full-fledged browser engine is required for actually generating the slides.

joshua-stone commented 1 year ago

@imar014 Can you see if this test build works?

$ flatpak install --user https://dl.flathub.org/build-repo/25644/md.obsidian.Obsidian.flatpakref
$ flatpak install org.chromium.Chromium
$ flatpak run --talk-name=org.freedesktop.Flatpak --env=CHROME_PATH=/app/libexec/flatpak-spawn/org.chromium.Chromium md.obsidian.Obsidian
imar014 commented 1 year ago

Thanks - tried but no joy. Not a flatpak expert so not sure how I get info on when process breaks down. Am now sure it is access to chromium as marp-cli works absolutely fine on files in vault.Sent from my iPhoneOn 25 May 2023, at 08:23, joshua-stone @.***> wrote: @imar014 Can you see if this test build works? $ flatpak install --user https://dl.flathub.org/build-repo/25644/md.obsidian.Obsidian.flatpakref $ flatpak install org.chromium.Chromium $ flatpak run --talk-name=org.freedesktop.Flatpak --env=CHROME_PATH=/app/libexec/flatpak-spawn/org.chromium.Chromium md.obsidian.Obsidian

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>