Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

[Question] How to set hugo's path? #20

Closed
mbnoimi opened this issue May 16, 2023 · 8 comments
Closed

[Question] How to set hugo's path? #20

mbnoimi opened this issue May 16, 2023 · 8 comments
Labels
question Further information is requested

Comments

@mbnoimi
Copy link

mbnoimi commented May 16, 2023

Hugo already works fine but BuhoCMS unable to detect its path although I set the permission to its flatpak as mentioned in the docs.

May you please help me to set BuhoCMS's flatpak permissions properly?

$ which hugo
/home/laptop/.go-pkg/bin/hugo
$ hugo version
hugo v0.111.3+extended linux/amd64 BuildDate=unknown
$ flatpak info --show-permissions org.buhocms.BuhoCMS
[Context]
shared=network;ipc;
sockets=x11;wayland;fallback-x11;
devices=dri;
filesystems=/home/laptop/.themes;/usr/share/themes;host;

[Session Bus Policy]
org.freedesktop.Flatpak=talk

[Environment]
GTK_THEME=Mint-Y-Dark-Aqua
QT_STYLE_OVERRIDE=Adwaita-dark
@mbnoimi mbnoimi added the question Further information is requested label May 16, 2023
@mbnoimi
Copy link
Author

mbnoimi commented May 16, 2023

image

@mbnoimi
Copy link
Author

mbnoimi commented May 16, 2023

It unable to detect hugo although I give it all the available permissions!!!

$ flatpak info --show-permissions org.buhocms.BuhoCMS
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;session-bus;system-bus;fallback-x11;ssh-auth;pcsc;cups;
devices=dri;all;kvm;shm;
features=devel;multiarch;bluetooth;canbus;per-app-dev-shm;
filesystems=home;/home/laptop/.themes;host-os;host-etc;/usr/share/themes;host;/home/laptop/.go-pkg/bin;

[Session Bus Policy]
org.freedesktop.Flatpak=talk

[Environment]
GTK_THEME=Mint-Y-Dark-Aqua
QT_STYLE_OVERRIDE=Adwaita-dark

EDIT: BTW, Front Matter works fine and able to detect hugo (VSCodium flatpak version)

@mbnoimi
Copy link
Author

mbnoimi commented May 16, 2023

Same issue with Appimage

@iakdis
Copy link
Owner

iakdis commented May 17, 2023

Hey @mbnoimi, thank you for the issue!

That is indeed weird, because it works in my case. Can you try opening a Hugo folder and build the website via the button on the left panel "Build Hugo website"? After that, what does it say in the Terminal output? (Left panel, button "Show Terminal Output")

@mbnoimi
Copy link
Author

mbnoimi commented May 17, 2023

Can you try opening a Hugo folder and build the website via the button on the left panel "Build Hugo website"? After that, what does it say in the Terminal output?

$ flatpak-spawn --host --env=GEM_HOME=/home/laptop/gems --env=PATH=/home/laptop/gems/bin:/app/bin:/usr/bin --env=DEBIAN_DISABLE_RUBYGEMS_INTEGRATION=1 hugo 

Portal call failed: Failed to start command: Failed to execute child process “hugo” (No such file or directory)

@iakdis
Copy link
Owner

iakdis commented May 17, 2023

I believe the problem is that the hugo executable is located in a directory that you specified in your systems PATH variable; this variable is not passed in BuhoCMS in the command to run it though, hence it doesn't find it.

This probably means that I will have to add a setting that allows you to customize the executable paths, expect an update soon.

@mbnoimi
Copy link
Author

mbnoimi commented May 17, 2023

expect an update soon.

Thanks

@iakdis
Copy link
Owner

iakdis commented May 20, 2023

Hey @mbnoimi,
the new release v0.9.0 is out now and it includes an option in the settings to set custom executables paths.

Let me know if that works for you 👍

@mbnoimi mbnoimi closed this as completed May 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants