Commit 83ec4881 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'Htylol-fixes_for_systemd-inhibit' into devel

parents 066e37aa 5ad6b9e7
......@@ -3852,7 +3852,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
......
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