-
Notifications
You must be signed in to change notification settings - Fork 500
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
Support for keepassxc-cli from Flatpak #4110
Comments
Your wrapper script is the correct approach to this but your wrappers scripts appear to be incorrect — they do not pass parameters. Your second one is better, but still needs some work: #!/bin/bash
flatpack run --command=keepassxc-cli org.keepassxc.KeePassXC -- "$@" You may require additional flags for some flatpak programs (see #4085) that you might use due to security considerations. |
Thanks for the thorough report!
There are a couple of things that are preventing this from working:
The problem here is that Edit: @halostatue's wrapper script solution is better, edit to remove mine. |
You are right, I had a bash alias in mind (which would not work here) while writing this and forgot that I need to pass the parameters. Thank you. |
I’m not sure that's a bug. Not all commands allow I think that there's a possible argument for supporting flatpak in chezmoi command runners: [keepassxc]
command = "keepassxc-cli"
flatpak = true With this, chezmoi would internally transform that command to I don't think that this is something that should be supported for all command installers and runners (e.g., I don't see a reason to support |
I think having such support for flatpak is excessive and just passing user defined arguments to every invocation is enough. |
I don't really disagree, even though I suggested adding it above. However as this issue suggests, there are issues with There is a part of me that thinks it would be good to add a "recipes" section to the documentation that captures solutions like this. |
What exactly are you trying to do?
I use the KeepassXC Flatpak and want to configure Chezmoi to use the included
keepassxc-cli
.What have you tried so far?
Create wrapper script:
Configure to use Flatpak directly:
It looks like we are almost there, just that the code does not expect what we are doing here.
Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flag$ chezmoi --verbose $COMMAND
Output of
chezmoi doctor
Additional context
This may affect other users who try to use and configure other apps in Chezmoi packaged as Flatpak. Immutable distributions like Steam OS (stronger) and Fedora Silverblue (weaker) encourage using Flatpak instead of traditional package management.
The text was updated successfully, but these errors were encountered: