mpris-timer icon indicating copy to clipboard operation
mpris-timer copied to clipboard

Compilation not starting

Open claymorwan opened this issue 2 years ago • 5 comments

I'm trying to build the app using the command shwon in the readme go build -pgo default.pgo -tags wayland -ldflags="-s -w" -o ./.bin/app ./cmd/main.go but it doesn't do anything, just get stuck like this Screenshot_20241124_094554

claymorwan avatar Nov 24 '24 09:11 claymorwan

Hi, try to take a look at CPU load by cores — it probably is compiling, it is just that the huge part (GTK) is actually written in C and compiling C sucks. It takes ~20 min with my 8845HS and I hate that :) But that's only for the first time.

efogdev avatar Nov 24 '24 09:11 efogdev

Also note that you need to compile (install) the gsettings schema, the app won't launch otherwise:

sudo cp misc/io.github.efogdev.mpris-timer.gschema.xml /usr/share/glib-2.0/schemas/ && sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

I'll probably add that to the README later.

efogdev avatar Nov 24 '24 10:11 efogdev

yep so compiled it, executed that command and it seems to be working thanks, the only weird thing is that it looks laggy in the plasma player but it there with the flatpak too so yea, thanks :3

btw since ur here, can I make this an aur package ?

claymorwan avatar Nov 24 '24 19:11 claymorwan

Sure — see #3 — I've added "help is welcome" label Regarding the "laggy" player — it is only 6 fps for Plasma (30 in GNOME) because it flickers otherwise, and its hardcoded: https://github.com/efogdev/mpris-timer/blob/main/internal%2Futil%2Fconst.go#L18 I don't think it is possible to make it smooth without patching KDE

efogdev avatar Nov 25 '24 04:11 efogdev

O oki, Imma make an aur packages rn , and imma look at the kde thingy, thanks :3

claymorwan avatar Nov 25 '24 21:11 claymorwan