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

Config.yaml file location amiguity #111

Closed
bendoin opened this issue Jul 6, 2023 · 3 comments
Closed

Config.yaml file location amiguity #111

bendoin opened this issue Jul 6, 2023 · 3 comments

Comments

@bendoin
Copy link

bendoin commented Jul 6, 2023

When opening Halloy for the first time, there is a screen guiding the user to create a new configuration file, which is very nice, but the problem is that in the config.template.yaml file is showing # Linux: $HOME/.config/halloy as the expected location when in fact the application is looking for the config.yaml file under ~/.var/app/org.squidowl.halloy/config/halloy/config.yaml.

Is this a Flatpak related problem? I did install it via Flatpak.

Has the project considered adhering to $XDG_CONFIG_HOME from the XDG Base Directory Specification and move away from a adding a new .var/ directory and instead using the directory $HOME/.config/halloyas stated in theconfig.template.yaml file?

@tarkah
Copy link
Member

tarkah commented Jul 6, 2023

Welcome to the wonderful world of Flatpak :P I originally had it setup to respect the host XDG folders, but the flathub maintainers were giving me a very hard time about enabling these sandbox exceptions. So much of a hard time I eventually gave up and decided to respect their remapped XDG locations, which are as you show above.

@tarkah
Copy link
Member

tarkah commented Jul 6, 2023

See the related commit that reverted this behavior:

dde014d

@tarkah
Copy link
Member

tarkah commented Jul 6, 2023

I'm going to close this issue as it's working as expected. I have no desire to fight the flathub maintainers even tho I agree with you and feel we should respect host XDG paths. It's crazy to me they allow very restricted sandbox permissions of --filesystem=xdg-config/halloy:create in the build manifest, but have a lint which completely prevents me from being able to ship that to flathub.

@tarkah tarkah closed this as completed Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants