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

Diroctory flag doesn't work on the linux #16

Open
amiroslaw opened this issue Aug 26, 2021 · 0 comments
Open

Diroctory flag doesn't work on the linux #16

amiroslaw opened this issue Aug 26, 2021 · 0 comments

Comments

@amiroslaw
Copy link

Always config directory is default.
pomodoro history --directory ~/.config/pomodoro
I've tried it with question marks and slash in the end.

To be honest the default directory on the linux should be "XDG_CONFIG_HOME" according to the specification:
https://wiki.archlinux.org/title/XDG_Base_Directory

I installed via arch aur aur/openpomodoro 0.3.0-1 but pomodoro -v prints:
pomodoro version dev

hugobally added a commit to hugobally/openpomodoro-cli that referenced this issue Nov 14, 2022
The --directory flag does not work, all commands use the default
`~/.pomodoro` directory even when the flag is provided.
With the current code, `directoryFlag` is always an empty string when
passed to the openpomodoro.NewClient function because the flag has not
been parsed yet at this time.
Moving to the PersistentPreRun hook ensures that all commands will
initialize the client with the correct flag value.

Co-authored-by: hugobally <hugobally@users.noreply.github.com>
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

1 participant