@@ -33,13 +33,20 @@ void Platform::init()
33 QDBusInterface seatIface("org.freedesktop.login1", "/org/freedesktop/login1/seat/self", "org.freedesktop.login1.Seat",
33 QDBusInterface seatIface("org.freedesktop.login1", "/org/freedesktop/login1/seat/self", "org.freedesktop.login1.Seat",
34 QDBusConnection::systemBus(), this);
34 QDBusConnection::systemBus(), this);
36− // From the docs at https://www.freedesktop.org/wiki/Software/systemd/hostnamed/
36+ // From the source at https://cgit.freedesktop.org/systemd/systemd/tree/src/hostname/hostnamed.c#n130
37− // the options are "desktop", "laptop", "server", "tablet", "handset", as well
37+ // "vm\0"
38− // as the special chassis types "vm" and "container".
38+ // "container\0"
39 m_chassis = iface.property("Chassis").toString();
46 m_chassis = iface.property("Chassis").toString();
41− // A PC is not a phone or tablet.
48+ // A PC is not a handset, tablet or watch.
42− m_isPC = !QSet<QString>{"handset", "tablet"}.contains(m_chassis);
49+ m_isPC = !QSet<QString>{"handset", "tablet", "watch"}.contains(m_chassis);
43 m_isMultiSession = seatIface.property("CanMultiSession").toBool() && seatIface.property("CanGraphical").toBool();
50 m_isMultiSession = seatIface.property("CanMultiSession").toBool() && seatIface.property("CanGraphical").toBool();