Commit fccd5ca
authored
fix(trayicon): wait for system tray availability on startup (#116)
* fix(trayicon): wait for system tray availability on startup
On some desktop environments (e.g. KDE Plasma), autostart programs
launch before the system tray/panel is loaded. aw-qt would immediately
exit with an error in this case.
Now polls for up to 30 seconds with Qt event processing, giving the
desktop environment time to initialize its system tray. Falls back to
the original error if the tray never becomes available.
Fixes #97
* fix(trayicon): reduce wait timeout from 30s to 10s
10 seconds is sufficient for KDE Plasma to load the system tray.
Feedback from @ErikBjare.1 parent 2ed852e commit fccd5ca
1 file changed
+22
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
244 | 251 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
251 | 267 | | |
252 | 268 | | |
253 | 269 | | |
| |||
0 commit comments