Bug 54447 - В Steam не работает выключение и перезапуск
Summary: В Steam не работает выключение и перезапуск
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: gamescope-session-plus (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: fidel@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-25 09:44 MSK by Boris Yumankulov
Modified: 2025-05-27 12:11 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Yumankulov 2025-05-25 09:44:23 MSK
в gamescope-session-steam не работает выключение и перезапуск оно просто выбивает из сессии, баг завожу сюда потому что проблемный код здесь, а именно эта часть

# Catch reboot and powerof sentinels here
if [[ -e "$REBOOT_SENTINEL" ]]; then
	rm -f "$REBOOT_SENTINEL"
	# rearm short session tracker
	rm "$short_session_tracker_file"
	reboot
fi
if [[ -e "$SHUTDOWN_SENTINEL" ]]; then
	rm -f "$SHUTDOWN_SENTINEL"
	# rearm short session tracker
	rm "$short_session_tracker_file"
	poweroff
fi


В  /usr/share/gamescope-session-plus/gamescope-session-plus

Поскольку обычный пользователь не имеет доступа к poweroff и reboot ничего и не происходит, решение заменить их вызов на

systemctl reboot и systemctl poweroff доступные на запуск обычному пользователю
Comment 1 Repository Robot 2025-05-27 12:11:04 MSK
gamescope-session-plus-0.0.2.git35ac9f-alt1 -> sisyphus:

 Tue May 27 2025 Mikhail Tergoev <fidel@altlinux> 0.0.2.git35ac9f-alt1
 - updated to upstream git 35ac9f
 - added build for aarch64
 - fixed reboot and poweroff (thx boria138@) (ALT bug: 54447)