gabrielzschmitz / Tomato.C

A pomodoro timer written in pure C.
GNU General Public License v3.0
315 stars 19 forks source link

Crazy output and unable to exit tomato app until closing terminal window #12

Closed luisnquin closed 1 year ago

luisnquin commented 1 year ago

The problem occurs directly when starting the program, there's no menu, just that

Also ignore the second and third zsh error, is a zsh plugin

image

These are my specs: OS: NixOS Zsh version: 5.9 (x86_64-pc-linux-gnu) prompt: Starship(I think that's irrelevant but)

used tomato rev: 3c7cba14b78a771dfb982420410dd197f6e09954

gabrielzschmitz commented 1 year ago

I think that's because now I need to run the make install as regular user (without sudo), as you can see: https://github.com/gabrielzschmitz/Tomato.C/commit/1a4b0c759d1e3fd8602e9237a40bcb3892d6d314

Is there any way of achieving this with a nix pkg?

luisnquin commented 1 year ago

I can't research more about that by now(maybe later), but I don't think that's a sudo problem, if Nix doesn't seems something ok with the package then it only throws an error that doesn't allow you to pass the package to your machine

Wait for news

gabrielzschmitz commented 1 year ago

The crash occours because you can't write to the log file or because the log file is at the wrong folder (config.mk):

LOGPREFIX=$(HOME)/.local/share/tomato

because the HOME was probably at /root instead of /home/username

gabrielzschmitz commented 1 year ago

Now it should work fine, moved the log folder and file creation to runtime. Try it and give me a feedback

luisnquin commented 1 year ago

Yeah, it's finally working, thanks for your support @gabrielzschmitz

image image

gabrielzschmitz commented 1 year ago

Happy it worked :)