Browse Source

panel: sleep a bit before first call to weather-tool

K. Lange 10 months ago
parent
commit
7aed902309
1 changed files with 2 additions and 6 deletions
  1. 2 6
      apps/panel.c

+ 2 - 6
apps/panel.c

@@ -497,13 +497,9 @@ static void show_cal_menu(void) {
 	}
 }
 
-static void weather_call_updater(void) {
-	system("weather-tool &");
-}
-
 static void weather_refresh(struct MenuEntry * self) {
 	(void)self;
-	weather_call_updater();
+	system("weather-tool &");
 }
 
 static void weather_configure(struct MenuEntry * self) {
@@ -1505,7 +1501,7 @@ int main (int argc, char ** argv) {
 	}
 
 	/* TODO Probably should use the app launch shortcut */
-	weather_call_updater();
+	system("sh -c \"sleep 4; weather-tool\" &");
 
 	/* Draw the background */
 	for (int i = 0; i < width; i += sprite_panel->width) {