diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 740be877..38a9dfd0 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -3696,7 +3696,7 @@ if [[ "$GAMEMODERUN" != "1" ]]; then start_activity_simulation PW_INHIBIT_SLR="" print_info "Screensaver will be inhibited using D-Bus (Flatpak mode)" - elif command -v systemd-inhibit &>/dev/null; then + elif [[ -e "/var/run/dbus/system_bus_socket" ]] && command -v systemd-inhibit &>/dev/null; then PW_INHIBIT_SLR="systemd-inhibit --mode=block --who=ru.linux_gaming.PortProton --why=${translations[Launched]} --what=idle:sleep" print_info "Screensaver will be inhibited using systemd-inhibit (Native mode)" fi