summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-11-30 11:37:32 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2013-12-01 12:17:08 +0100
commita0a6be9f6ab55ea76215c7fa4a5eab2235687348 (patch)
tree69daea4f45d70d9874a68f2b50ac2ca4ac02a220 /src/login
parentd78a28e3d7c8736d9addc2e45762d0f511ebbcdb (diff)
logind: fix "CanGraphical" attribute to return correct value
We should return seat_can_graphical() instead of seat_can_tty() for the public dbus CanGraphical attribute. This used to work, but the dbus -> sd-bus conversion introduced this regression.
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-seat-dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-seat-dbus.c b/src/login/logind-seat-dbus.c
index 76158e501b..23f975bca7 100644
--- a/src/login/logind-seat-dbus.c
+++ b/src/login/logind-seat-dbus.c
@@ -103,7 +103,7 @@ static int property_get_can_graphical(
assert(reply);
assert(s);
- return sd_bus_message_append(reply, "b", seat_can_tty(s));
+ return sd_bus_message_append(reply, "b", seat_can_graphical(s));
}
static int property_get_sessions(