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

Running melonbar immediately crashes #1

Closed
zeroeightysix opened this issue Jan 13, 2019 · 2 comments
Closed

Running melonbar immediately crashes #1

zeroeightysix opened this issue Jan 13, 2019 · 2 comments

Comments

@zeroeightysix
Copy link

zeroeightysix commented Jan 13, 2019

OS: arch
i3 for wm.
go version: 1.11.4

installed using go get github.com/onodera-punpun/melonbar
running /home/<user>/go/bin/melonbar very briefly creates the bar window (for only a few milliseconds), exits right after with the following message: 2019/01/13 23:36:26 no such file or directory (timestamp is just the current date)

@CamilleScholtz
Copy link
Owner

CamilleScholtz commented Jan 14, 2019

Many things are still hard-coded (because I want the user to edit the code to fit his or her needs). This is probably caused by https://github.com/onodera-punpun/melonbar/blob/master/blocks.go#L181

This line looks for a "todo" file, for me this file is $HOME/.todo. Either create this file or alter line.

I know this is not the perfect solutuon, maybe I'll create a config.go file where such valuas are set.

@zeroeightysix
Copy link
Author

Yup, that solved it! Maybe try checking whether or not the file exists first and provide a more verbose error message for now (or put it in the readme)? Nice work on the bar so far.

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