22 Commits
Author SHA1 Message Date
Clansty 18d685976e dashboard: defer ServerStatus::Started until D-Bus properties are populated
The server only exports its D-Bus interface and sets JsonConfiguration
from inside on_name_acquired (server/main.cpp), after owning the
well-known name io.github.wivrn.Server. The dashboard's GetAll
triggered from on_server_dbus_registered can therefore race ahead of
that and come back with an error or an empty reply.

Previously the dashboard set ServerStatus to Started as soon as the
name was owned, so the rest of the UI assumed the server was usable
while JsonConfiguration was still missing. SettingsPage in particular
loaded its values once in Component.onCompleted and ended up showing
defaults (Encoder Auto, SteamVR checkbox unchecked, OpenVR / Autostart
blank), even though the configuration on disk was correct.

Move the Started transition into refresh_server_properties, only after
GetAll returns a reply that actually contains JsonConfiguration. If the
initial reply is errored or empty, retry every 200 ms until the server
has exported its interface. When the dashboard starts and finds the
service already registered, set Status::Starting in the constructor so
Main.qml does not see Stopped and spawn a duplicate process.

With this, ServerStatus::Started now consistently means 'server is
fully usable, properties are populated', and SettingsPage no longer
needs to handle the asynchronous arrival of JsonConfiguration itself.
2026-05-20 21:40:51 +02:00
Patrick Nicolas d5e4e3cfce Add a warning when closing the dashboard 2026-02-02 10:45:45 +01:00
Patrick Nicolas 12cddd4d6f Add connected headset SystemName property in dbus 2026-01-06 13:07:32 +01:00
Patrick Nicolas bc1c0b9e93 Drop cap_sys_nice check 2025-11-19 14:16:15 +01:00
Patrick Nicolas 7c2057ec9e Add message to restart server after config change 2025-11-19 14:16:15 +01:00
Patrick Nicolas aca45420dd Show server error on GUI (encoders currently) 2025-10-05 20:26:07 +02:00
Marc Meier 6f696a92fb Add missing stdlib includes to improve portability (#499) 2025-09-22 14:58:09 +02:00
Patrick Nicolas e0608f0c68 Don't crash if server failed to start 2025-08-08 14:34:42 +02:00
Patrick Nicolas 2f2192f292 Fix qml naming warning 2025-06-06 13:21:21 +02:00
Patrick Nicolas 9ed8b04750 Populate OpenVR compat libs in non-flatpak build 2025-05-14 10:58:26 +02:00
Patrick Nicolas ef90913426 Get host path for selected application 2025-05-13 09:34:24 +02:00
Guillaume Meunier d17fac36ec Open log directory instead of the last log file 2025-05-08 13:17:02 +02:00
Guillaume Meunier e44965f1ef Fix compatibility with Qt < 6.7 2025-03-25 21:15:01 +01:00
Guillaume Meunier 8648e41a5a Save server logs 2025-03-25 21:15:01 +01:00
Guillaume Meunier 57a0cf1d4b Display the last connection time in dashboard/wivrnctl 2025-03-25 21:15:01 +01:00
Guillaume Meunier bac0f9cbb2 Added QML dashboard 2025-02-02 17:08:58 +01:00
Guillaume Meunier 79c553fe6f Remove old dashboard 2025-02-02 16:57:41 +01:00
Patrick Nicolas 954b5a7038 rename enroll -> pair 2024-11-26 23:59:35 +01:00
Guillaume Meunier 2aa12de520 Add desktop notifications, enable enrolling when the wizard is displayed 2024-11-26 23:59:35 +01:00
Guillaume Meunier c6e773fd22 Add support for authentication and encryption 2024-11-26 23:59:35 +01:00
Guillaume Meunier 2c6ca54c88 Actually read the server configuration 2024-10-02 21:35:48 +02:00
Guillaume Meunier 56d660dbdb Add server dashboard 2024-10-02 20:30:45 +02:00