-
-
Notifications
You must be signed in to change notification settings - Fork 620
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
[Bug]: conky 1.21. does not start consistently #1939
Comments
Can you run conky with |
with debug it looks like it's failing on the comment mentions copying from dunst, which has an updated comment about tried double checking sometimes |
l - o - l i think this works? not entirely sure if it's right, just going with the dunst logic --- a/src/x11.cc
+++ b/src/x11.cc
@@ -33,6 +33,9 @@
#include "x11.h"
#include <X11/X.h>
+#include <X11/Xlibint.h>
+#undef min
+#undef max
#include <sys/types.h>
#include "common.h"
@@ -314,6 +317,8 @@
XrmDestroyDatabase(db);
}
+ // https://github.com/dunst-project/dunst/blob/master/src/x11/x.c#L499
+ display->db = NULL; // should be new or deleted
db = XrmGetStringDatabase((const char *)prop.value);
XrmSetDatabase(display, db);
} |
this has been solid for me for a bit now. should i make a PR or is the patch with the hacky 'undef's enough? |
Still does not start for me
|
@zlice display->db = nullptr; I'm guessing In any case, a PR would be very welcomed. Thank you for the effort debugging this. |
When I don't have the header I get an I'll make a PR in the morning. Thanks
|
https://github.com/dunst-project/dunst/blob/master/src/x11/x.c#L499 looks to be the source of some code which now sets display to NULL for some type of race condition in X11. Xlibint.h allows for building on Void Linux but needs min/max undefined. closes brndnmtthws#1939
What happened?
Putting conky in my fluxbox(fork, shynebox) startup file has worked fine for years. But with 1.21 my distro update to the other day it is very finicky if it will start at all. Starting manually in a terminal will start conky with some delay and then run fine until reboot/re-login.
1.19.6 started every time, so I went back to that.
Version
1.21.1
Which OS/distro are you seeing the problem on?
Linux (other)
Conky config
The text was updated successfully, but these errors were encountered: