Based on commit 75ce3b259be20f4a304fbf90d7c5f55871c872da Fix if_running not working on linux when a top flavour is not running Index: /src/conky.c =================================================================== --- /src/conky.c_old 2009-09-04 11:27:17.000000000 +0200 +++ /src/conky.c 2009-09-04 11:29:26.000000000 +0200 @@ -142,6 +142,9 @@ #ifdef IOSTATS int top_io; #endif +#ifdef __linux__ +int top_running; +#endif static unsigned int top_name_width = 15; int output_methods; static int extra_newline; @@ -2145,6 +2148,7 @@ #ifdef __linux__ END OBJ_IF(if_running, INFO_TOP) if (arg) { + top_running = 1; obj->data.ifblock.s = strndup(arg, text_buffer_size); #else END OBJ_IF(if_running, 0) @@ -7740,6 +7744,9 @@ #ifdef IOSTATS top_io = 0; #endif +#ifdef __linux__ + top_running = 0; +#endif #ifdef MPD mpd_env_host = getenv("MPD_HOST"); mpd_env_port = getenv("MPD_PORT"); Index: /src/conky.h =================================================================== --- /src/conky.h_old 2009-09-04 11:29:47.000000000 +0200 +++ /src/conky.h 2009-09-04 11:30:19.000000000 +0200 @@ -329,6 +329,9 @@ #ifdef IOSTATS extern int top_io; #endif +#ifdef __linux__ +extern int top_running; +#endif /* defined in conky.c, needed by top.c */ extern int cpu_separate; Index: /src/top.c =================================================================== --- /src/top.c_old 2009-09-04 11:30:29.000000000 +0200 +++ /src/top.c 2009-09-04 11:31:33.000000000 +0200 @@ -669,6 +669,7 @@ #ifdef IOSTATS && !top_io #endif + && !top_running ) { return; }