<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>54447</bug_id>
          
          <creation_ts>2025-05-25 09:44:23 +0300</creation_ts>
          <short_desc>В Steam не работает выключение и перезапуск</short_desc>
          <delta_ts>2025-05-27 12:11:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gamescope-session-plus</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Yumankulov">boriabloger</reporter>
          <assigned_to name="fidel@altlinux.org">fidel</assigned_to>
          <cc>fidel</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>265527</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Yumankulov">boriabloger</who>
    <bug_when>2025-05-25 09:44:23 +0300</bug_when>
    <thetext>в gamescope-session-steam не работает выключение и перезапуск оно просто выбивает из сессии, баг завожу сюда потому что проблемный код здесь, а именно эта часть

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


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

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

systemctl reboot и systemctl poweroff доступные на запуск обычному пользователю</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265733</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-05-27 12:11:04 +0300</bug_when>
    <thetext>gamescope-session-plus-0.0.2.git35ac9f-alt1 -&gt; sisyphus:

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

    </bug>

</bugzilla>