Merge branch 'Htylol-fixes_for_systemd-inhibit' into devel
This commit is contained in:
@ -3852,7 +3852,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
|
||||||
|
Reference in New Issue
Block a user