Commit 85e1ddd2 authored by Htylol's avatar Htylol

Fixes for systemd-inhibit

systemd-inhibit крашит PortProton, если нет доступа к /var/run/dbus/system_bus_socket, проверить можно если сделать к примеру sudo rm -f /var/run/dbus/system_bus_socket, и потом через PortProton запустить какое-нибудь приложение/игру.
parent c33d9ba3
...@@ -3696,7 +3696,7 @@ if [[ "$GAMEMODERUN" != "1" ]]; then ...@@ -3696,7 +3696,7 @@ if [[ "$GAMEMODERUN" != "1" ]]; then
start_activity_simulation start_activity_simulation
PW_INHIBIT_SLR="" PW_INHIBIT_SLR=""
print_info "Screensaver will be inhibited using D-Bus (Flatpak mode)" 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" 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)" print_info "Screensaver will be inhibited using systemd-inhibit (Native mode)"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment