diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index c9d15d2b..5a595ae3 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -916,7 +916,7 @@ void scenes::stream::render(const XrFrameState & frame_state) int32_t max_height = 0; for (size_t i = 0; i < view_count; ++i) { - extents[i] = defoveator->defoveated_size(foveation[i]); + extents[i] = stream_defoveator::defoveated_size(foveation[i]); max_width = std::max(max_width, extents[i].width); max_height = std::max(max_height, extents[i].height); } diff --git a/client/scenes/stream_defoveator.cpp b/client/scenes/stream_defoveator.cpp index 8293a3f7..24467b31 100644 --- a/client/scenes/stream_defoveator.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -443,7 +443,7 @@ static uint16_t count_pixels(const std::vector & param) return res; } -XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const +XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view) { return { count_pixels(view.x), diff --git a/client/scenes/stream_defoveator.h b/client/scenes/stream_defoveator.h index 6b106564..5a19510f 100644 --- a/client/scenes/stream_defoveator.h +++ b/client/scenes/stream_defoveator.h @@ -87,5 +87,5 @@ public: const std::array & inputs, int destination); - XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &) const; + static XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &); }; diff --git a/flatpak/io.github.wivrn.wivrn.yml.in b/flatpak/io.github.wivrn.wivrn.yml.in index 6cc302b1..9b7de5f7 100644 --- a/flatpak/io.github.wivrn.wivrn.yml.in +++ b/flatpak/io.github.wivrn.wivrn.yml.in @@ -258,8 +258,8 @@ modules: - -Ddocbook_docs=disabled sources: - type: archive - url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.7.tar.xz - sha256: 4be15202ec4184fce1ac15997ece5530d2be32fe9573875aeb10e3b573858748 + url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.8.tar.xz + sha256: 23420ef619dc2cb5aebad613f4823a2fa41c07e5a1d05628d40f6ec4b35bfddd x-checker-data: type: gnome name: libnotify diff --git a/server/dist/wivrn.service.in b/server/dist/wivrn.service.in index 11348cdc..ec9a3d92 100644 --- a/server/dist/wivrn.service.in +++ b/server/dist/wivrn.service.in @@ -3,7 +3,7 @@ Description=OpenXR streaming server [Service] Type=simple -ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server --systemd +ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server CapabilityBoundingSet=CAP_SYS_NICE AmbientCapabilities=CAP_SYS_NICE LockPersonality=true diff --git a/server/main.cpp b/server/main.cpp index 61a83377..e545993c 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -182,7 +182,6 @@ int control_pipe_fds[2]; GMainLoop * main_loop; const AvahiPoll * poll_api; -bool use_systemd; guint server_watch; guint server_kill_watch; @@ -775,11 +774,11 @@ void on_headset_info_packet(const wivrn::from_headset::headset_info_packet & inf void on_name_acquired(GDBusConnection * connection, const gchar * name, gpointer user_data) { #if WIVRN_USE_SYSTEMD - if (use_systemd) + try { children = std::make_unique(connection, update_fsm); } - else + catch (...) #endif { children = std::make_unique(update_fsm); @@ -977,9 +976,6 @@ int main(int argc, char * argv[]) auto no_fork = app.add_flag("--no-fork")->description("disable fork to serve connection")->group("Debug"); auto no_publish = app.add_flag("--no-publish-service")->description("disable publishing the service through avahi"); auto no_encrypt = app.add_flag("--no-encrypt")->description("disable encryption")->group("Debug"); -#if WIVRN_USE_SYSTEMD - app.add_flag("--systemd", use_systemd, "use systemd to launch user-configured application"); -#endif CLI11_PARSE(app, argc, argv);