Commit Graph
89 Commits
Author SHA1 Message Date
Patrick Nicolas d3e10dc31b Rewrite child application management
Forked applications are managed by a class, which can track more than
one child.
Systemd mode uses transient units, libsystemd is replaced by
gdbus-codegen, the management objects shares the interface with forked
application.
2025-07-22 20:49:32 +02:00
Patrick Nicolas 2f5496c06e Give application to launch instead of reading conf 2025-07-17 15:28:41 +02:00
Patrick Nicolas 286268d2c6 Start application in transient unit in systemd mode 2025-07-16 22:07:03 +02:00
Patrick Nicolas 11cd9235d9 Allow multiple configuration files
Will merge contents from
@CMAKE_INSTALL_PREFIX@/share/wivrn/config.json
/etc/wivrn/config.json
~/.config/wivrn.config.json (XDG_CONFIG_DIR in fact)

If -f option is provided, just parse that file, don't merge anything
2025-07-06 10:22:25 +02:00
Patrick Nicolas b9752276b7 read DBUS env variables for --systemd mode 2025-06-23 18:30:27 +02:00
Patrick Nicolas 444a5fed9e Force compositor scale to 100% 2025-06-20 09:17:07 +02:00
Patrick Nicolas aef8efba8a Drop mipmaps for foveation 2025-06-06 20:04:40 +02:00
Sapphire b29abf073e Fix call to ipc_server_main, add config options for debug GUI and steamvr_lh
* Add config option for SteamVR lighthouse device support

* Add dashboard toggles for debug window and steamvr_lh

* clang-format

* Hide advanced toggles if not enabled during build
2025-05-21 04:58:06 -05:00
Guillaume Meunier 360d28d68e Fix libnotify-CRITICAL when encryption is disabled 2025-03-25 21:21:32 +01:00
Guillaume Meunier 345db32bb1 Always use stderr instead of stdout for 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
peelz e23d24c37d Fix active runtime getting set before applying the config override 2025-03-23 23:16:57 +01:00
peelz 98accc1219 Fix active runtime always getting set early 2025-03-23 23:16:57 +01:00
t20kdc 0e9b72c776 Add OpenVR runtime override as a setting, add --early-active-runtime to test this (rv2)
I ran into some trouble debugging issues with Vivecraft because my OpenVR runtime setup was being automatically overridden by WiVRn.

It would be nice to attach a UI to this option, but I'm not sure on the details there and I'd like to keep the PR small and easily reviewed.

Being able to set the compat path is more useful than simply disabling compat override because of things like pressure-vessel bypass, which are finicky to get right.
2025-03-21 22:40:48 +01:00
Sapphire 5b49e2fc9f Add xrizer support 2025-02-16 13:27:26 +01:00
galister 261bb2c600 pass through HTC_facial_tracking 2025-02-08 10:24:15 +01:00
Patrick Nicolas a79bb781ae Use a property for bitrate 2025-02-07 19:00:34 +01:00
galister e9f4b52b50 wip: set bitrate at runtime 2025-02-07 19:00:34 +01:00
Patrick Nicolas f7f0ae60bb Allow service publication to be set in json 2025-01-24 21:53:22 +01:00
Patrick Nicolas d1b91c41e4 Use DBUS_SESSION_BUS_ADDRESS even with cap_sys_nice 2025-01-15 17:02:14 +01:00
Sapphire 820df671ca Show git tag when --no-instructions is specified 2025-01-11 10:35:48 +01:00
Guillaume Meunier 043a673c59 Add a delay before allowing the next connection if the wrong PIN is entered 2024-12-02 17:54:47 +01:00
Patrick Nicolas 535ead4503 Add --no-manage-active-runtime flag 2024-12-01 19:07:46 +01:00
Patrick Nicolas ba47c80213 Fix 32bits warnings 2024-11-30 13:16:39 +01:00
Patrick Nicolas 954b5a7038 rename enroll -> pair 2024-11-26 23:59:35 +01:00
Guillaume Meunier ad7beaf80f More explicit pairing messages 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 59192bac6c Only allow pairing a headset if no headset is known or if it is explicitly asked for 2024-11-26 23:59:35 +01:00
Guillaume Meunier 2778f7dd7e Allow disabling encryption on the server command line 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
Patrick Nicolas 64d36a7927 Search for OpenComposite and write manifest on connect 2024-11-23 13:37:44 +01:00
Patrick Nicolas c391bd4d72 Drop obsolete LISTEN_PID and comments 2024-11-14 17:02:09 +01:00
Patrick Nicolas 00a25487fe Fix avahi publishing on reconnect 2024-11-14 17:01:08 +01:00
Patrick Nicolas 8400a03fde More accurate flatpak info parser 2024-11-07 19:41:35 +01:00
Patrick Nicolas 19a399640a Move flatpak utils into common 2024-11-07 19:41:33 +01:00
Guillaume Meunier 868fc55f37 Inhibit sleeping while a session is active 2024-11-01 17:36:29 +01:00
Patrick Nicolas 2000103949 Make service publication optional 2024-10-26 20:57:02 +02:00
Guillaume Meunier 26d271b907 Rework the wizard APK downloading, install directly instead of telling the user to use ADB. Add setting to choose which game to start automatically. 2024-10-10 23:26:09 +02:00
Patrick Nicolas 5f59dfb589 More reliable mechanism to pass monado socket
Using systemd's socket activation path fails in case file descriptor is
not 3. Use a global variable instead.
2024-10-08 23:03:03 +02:00
Patrick Nicolas 554c0f7ad6 Fix --no-fork parameter 2024-10-05 15:33:39 +02:00
Patrick Nicolas 3c09db939f Add --no-fork option for easier debugging 2024-10-05 09:51:59 +02:00
Patrick Nicolas fdb79b1939 Drop xrt::drivers namespace 2024-10-03 23:39:32 +02:00
Guillaume Meunier b0a14033b6 Fix warning in server/main.cpp 2024-10-01 23:04:19 +02:00
Guillaume Meunier 674343c74f Use cmakedefine01 instead of cmakedefine 2024-10-01 21:46:41 +02:00
Guillaume Meunier 2a6000a6e1 Create the socket directory in the non-systemd case 2024-09-29 10:50:46 +02:00
Guillaume Meunier b6a09ea11a Change the default socket location, create the parent directory 2024-09-27 19:25:57 +02:00
Guillaume Meunier 9774d8c1d1 Define enum for exit codes 2024-09-27 19:25:57 +02:00
Guillaume Meunier d0850e819c Add dbus server 2024-09-27 19:25:57 +02:00
Guillaume Meunier b93a937ae1 Refactor the main loop to use glib 2024-09-27 19:25:57 +02:00
Patrick Nicolas 50747d8fd4 Use proper mipmaps for distortion shader 2024-09-11 23:41:10 +02:00