clight-gui icon indicating copy to clipboard operation
clight-gui copied to clipboard

The gui is all grayed at startup

Open guillaumeboehm opened this issue 1 year ago • 8 comments

When opening the gui after a reboot the interface is all grayed out, even though clight and clightd are running. I have to close (full close not just to tray) the program and reopen it again for it to work.

I'm under arch-5.19.1-zen1-1-zen using clight-gui r91.079bd99

guillaumeboehm avatar Aug 14 '22 09:08 guillaumeboehm

if it works when you reopen it it's probably a weird d-bus issue

There a few things you can do to debug but I have been a bit busy:

  • busctl monitor when opening clight-gui
  • run clight manually before opening clight-gui

nullobsi avatar Aug 17 '22 05:08 nullobsi

Thanks! Well I seem to have some issues with clightd (I have another issue opened there). So I'll try to figure out what's wrong over there first and come back to this issue either to close it or to continue debugging.

guillaumeboehm avatar Aug 17 '22 12:08 guillaumeboehm

Same problem. What is your issue with clightd, can you link it?

commi avatar Aug 27 '22 15:08 commi

Well my issue is because the ALS sensor isn't working. So might not be related https://github.com/FedeDP/Clightd/issues/88.

guillaumeboehm avatar Aug 27 '22 16:08 guillaumeboehm

Thanks. In the meantime of figured that the UI stayed disabled because clight (not clightd) was not yet available on my system.

commi avatar Aug 27 '22 17:08 commi

I have the same issue as @guillaumeboehm. When I restart the clightd service and clight-gui the tabs of the gui aren't grayed out anymore.

herrwusel avatar Oct 13 '22 05:10 herrwusel

I can probably debug this later but I've been busy with other things. I have a feeling the culprit is probably here: https://github.com/nullobsi/clight-gui/blob/079bd990b78b200216198d58a4df9a5757606726/src/gui/MainWindow.cpp#L46 My guess is that it launches when clight is not yet running/initalized fully so it disables all the tabs. Perhaps there should be a "startup delay" option? Or I can try to make it wait for clight...

nullobsi avatar Oct 19 '22 15:10 nullobsi