From 85e1ddd2d1e7eb9b76462b2839b769fc1237b100 Mon Sep 17 00:00:00 2001 From: Htylol Date: Sun, 27 Jul 2025 20:19:10 +0500 Subject: [PATCH] Fixes for systemd-inhibit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit systemd-inhibit крашит PortProton, если нет доступа к /var/run/dbus/system_bus_socket, проверить можно если сделать к примеру sudo rm -f /var/run/dbus/system_bus_socket, и потом через PortProton запустить какое-нибудь приложение/игру. --- data_from_portwine/scripts/functions_helper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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