diff --git a/src/shell-util.c b/src/shell-util.c index 7c70a4bb8..3d6304340 100644 --- a/src/shell-util.c +++ b/src/shell-util.c @@ -677,7 +677,8 @@ shell_util_systemd_call (const char *command, */ res = sd_pid_get_user_unit (getpid (), &self_unit); - if (res == -ENODATA) + if (res == -ENODATA || + (res >= 0 && !g_str_has_prefix (self_unit, "org.gnome.Shell"))) { g_task_return_new_error (task, G_IO_ERROR,