This commit is contained in:
dec05eba
2026-03-29 19:52:33 +02:00
parent 388a3500e2
commit 6a12efec50

View File

@@ -299,9 +299,6 @@ int main(int argc, char **argv) {
fprintf(stderr, "Info: gsr ui is now ready, waiting for inputs. Press alt+z to show/hide the overlay\n");
// This garbage shit is needed because the systemd user daemon isn't always available at xdg autostart o algo
const bool systemd_service_ready = gsr::wait_until_systemd_user_service_available();
auto overlay = std::make_unique<gsr::Overlay>(resources_path, std::move(gsr_info), std::move(capture_options), egl_funcs);
if(launch_action == LaunchAction::LAUNCH_SHOW)
overlay->show();
@@ -312,6 +309,8 @@ int main(int argc, char **argv) {
// Evacuating from lennart's botnet to XDG (a.k.a. 'the spec that nobody actually follows').
// TODO: Remove all this garbage related to systemd in 1-2 months and remove the systemd service file as well.
// This garbage shit is needed because the systemd user daemon isn't always available at xdg autostart o algo
const bool systemd_service_ready = gsr::wait_until_systemd_user_service_available();
constexpr const char *deprecated_systemd_service_name = "gpu-screen-recorder-ui.service";
if(systemd_service_ready && gsr::is_systemd_service_enabled(deprecated_systemd_service_name)) {
const int autostart_result = gsr::set_xdg_autostart(true);