Open meghprkh opened 8 years ago
I have the same issue, because I launch my work applications automatically on startup and atom is launched, then slack and slack get the dark titlebar and atom does not. I have to restart atom to get it to work.
This is caused by a race condition that I can't easily fix. The way the titlebar is darkened follows these steps asynchronously:
The problem is, Atom could spawn or terminate processes at any point while this is happening, and a PID formerly assigned to Atom could be claimed by a different application.
I'm not sure if this is fixable. This is already an improved version of the strategy used by Sublime Text's GTKDarkThemeVariantSetter, which was subject to even more race condition bugs.
I would say #1 is related, and could solve this problem once and for all.
This happens when you launch an application just after launching atom.
For example, I open atom using
atom .
and while that is loading and window is still not shown I openpinta
(or any other application with a titlebar, you wont be able to see the difference in a header bar window)