[vte] spawn: Check for explicit systemd requirement
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] spawn: Check for explicit systemd requirement
- Date: Sun, 10 May 2020 19:57:32 +0000 (UTC)
commit 81dca07bc96e199f59dd805c61b7ae53e9775a3d
Author: Christian Persch <chpe src gnome org>
Date: Sun May 10 21:57:01 2020 +0200
spawn: Check for explicit systemd requirement
When built without systemd support, fail only if a systemd scope was
explicitly requested with the VTE_SPAWN_REQUIRE_SYSTEMD_SCOPE flag.
Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/245
src/spawn.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/spawn.cc b/src/spawn.cc
index 4f9fd1ab..8abee1a1 100644
--- a/src/spawn.cc
+++ b/src/spawn.cc
@@ -476,7 +476,7 @@ bool
SpawnOperation::prepare(vte::glib::Error& error)
{
#ifndef WITH_SYSTEMD
- if (context().systemd_scope()) {
+ if (context().require_systemd_scope()) {
error.set_literal(G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
"systemd not available");
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]