mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
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.
This commit is contained in:
parent
d78a28e3d7
commit
a0a6be9f6a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user