Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marp-slides plugin export function will not work #157

Open
imar014 opened this issue May 24, 2023 · 3 comments
Open

Marp-slides plugin export function will not work #157

imar014 opened this issue May 24, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@imar014
Copy link

imar014 commented May 24, 2023

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.
@imar014 imar014 added the bug Something isn't working label May 24, 2023
@joshua-stone
Copy link
Collaborator

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
Copy link
Collaborator

@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
Copy link
Author

imar014 commented May 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants