diff options
Diffstat (limited to 'src/procdialogs.cpp')
-rw-r--r-- | src/procdialogs.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp index c51a769..7d7aace 100644 --- a/src/procdialogs.cpp +++ b/src/procdialogs.cpp @@ -24,6 +24,11 @@ #include <signal.h> #include <string.h> + +#ifdef HAVE_SYSTEMD +#include <systemd/sd-daemon.h> +#endif + #include "procdialogs.h" #include "proctable.h" #include "callbacks.h" @@ -469,6 +474,16 @@ create_field_page(GtkWidget *tree, const char* text) if ((column_id == COL_CGROUP) && (!cgroups_enabled())) continue; + if ((column_id == COL_UNIT || + column_id == COL_SESSION || + column_id == COL_SEAT || + column_id == COL_OWNER) +#ifdef HAVE_SYSTEMD + && sd_booted() <= 0 +#endif + ) + continue; + visible = gtk_tree_view_column_get_visible (column); gtk_list_store_append (model, &iter); |