gabrielzschmitz / Tomato.C

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

Freezes on Start in i3wm on Arch Linux #49

Closed Ks4four closed 5 months ago

Ks4four commented 5 months ago

Specs:

Running i3wm on Arch Linux. i3 version: 4.23 kernel: 6.8.2-arch2-1

Problem:

Freezes when attempting to start from the menu. After approximately 30 seconds, it displays the error message: error calling startservicebyname for org.freedesktop.secrets timeout was reached.

I can't quit using C-c or q. It just freezes.

The app functions properly when executed with sudo privileges (which it shouldn't be). However, it still generates errors:

2024-04-06_13-40

Attempts:

sudo pacman -S gnome-keyring: Already installed gnome-keyring-daemon --start --components=secrets systemctl --user status dbus: active

It works in my KDE Plasma 6.0.3, but I don't want to use Plasma.

gabrielzschmitz commented 5 months ago

Have you installed all the dependencies?

$ sudo pacman -S base-devel ncurses mpv pkgconf libnotify

looks something is wrong with pipewire, but just to be sure.

Ks4four commented 5 months ago

Yes, I have reinstalled dependencies, but still no help.

gabrielzschmitz commented 5 months ago

What happens if you disable SOUNDS and NOISE in config.h?

Ks4four commented 5 months ago

Tried static const int SOUND = 0; static const int NOISE = 0; It didn't work. I also restored the default i3 config, but nothing happens.

gabrielzschmitz commented 5 months ago

(You need to recompile to the changes in config.h take effect)

Ks4four commented 5 months ago

Yes, I forgot to mention that I did sudo make install.

gabrielzschmitz commented 5 months ago

Try commenting MPVTOGGLE = 1 in config.mk too. As then mpv will be completely removed from the app.

Ks4four commented 5 months ago

Did it.

2024-04-06_20-46

Still freezes. After like 100 seconds it starts the timer. Weird.

2024-04-06_20-48

gabrielzschmitz commented 5 months ago

Dont switch 1 to 0. Actually comment the MPVTOGGLE = 1 line.

Looks like there's problems with notifications too

Ks4four commented 5 months ago

Ahhh sorry. Did that comment just now. But nothing happens unfortunately

gabrielzschmitz commented 5 months ago

What happens when you

$ notify-send test

and when you

$ mpv sounds/dfltnotify.mp3
Ks4four commented 5 months ago

Timeout was reached after like 60s

gabrielzschmitz commented 5 months ago

After which command?

Ks4four commented 5 months ago

When $ notify-send test it says Timeout was reached When $ mpv sounds/dfltnotify.mp3:

 (+) Audio --aid=1 (mp3 2ch 44100Hz)
File tags:
 Artist: FoolBoyMedia
 Comment: Created in Ignite, edited in Audition
AO: [pipewire] 44100Hz stereo 2ch floatp
(Paused) A: 00:00:01 / 00:00:01 (98%)

It played the music until it was paused at 98%

gabrielzschmitz commented 5 months ago

Looks like you don't have a notification daemon. Maybe try installing dunst, is a very minimal notification daemon:

$ sudo pacman -S dunst

then run it at background (should add to i3wm startup if works):

$ dunst &

then retry notify-send:

$ notify-send test
Ks4four commented 5 months ago

Ah it works. I just found out about the notification daemon.

$ notify-send test was successful and the timer works but I got this notification when resuming a timer:

CRITICAL: Source ID 112 (or a random number) was not found when attempting to remove it

but the timer is resuming the correct time. Does it matter?

gabrielzschmitz commented 5 months ago

Try adding dusnt to the i3wm startup and rebooting your machine.

exec --no-startup-id dunst
Ks4four commented 5 months ago

Got it 👌 No problems now.

gabrielzschmitz commented 5 months ago

If have any other problem, just open other issue, I'll be glad to help :)