Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

X-GNOME-AutoRestart doesn't work for non-client apps

オープン
#187 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c
領域
desktop

調査の方向性

まず pkill -KILL orca または pkill -ABRT orca で問題を再現し、次に cinnamon-session が通常のアプリケーションとセッションマネージャーのクライアントに対して X-GNOME-AutoRestart をどのように処理しているかを追跡します。動作を upstream の gnome-session の変更およびリンクされている Orca の報告と比較します。クライアントではないアプリケーションが自動再起動を要求した場合に、異常終了後に再起動され、クライアントの処理を壊さないことが完了の条件です。

索引モデルが issue の本文から書いたものです。

説明

Hi! I'm the new maintainer of gnome-session upstream, and I found a bug that cinnamon-session seems to have inherited since it forked. So I'm forwarding the bug report here

Some apps like the Orca screen reader set X-GNOME-AutoRestart with the expectation that they'll get restarted in the event of a crash or unclean exit. However, the gnome-session codebase you're forked from has a broken implementation of this for plain apps (i.e. apps that aren't "clients" and don't talk to the session manager via dbus or via XSMP). Orca is an app but not a client, and so X-GNOME-AutoRestart simply doesn't work.

The version of gnome-session you've forked from doesn't autorestart apps that set X-GNOME-AutoRestart=true. Which is, to say the least, incorrect. Upstream gnome-session has since gained a check to only skip autorestart on apps that set that setting and are also clients, because clients get autorestarted when they disconnect from the session manager. In other words, cinnamon-session is failing to handle the case where a non-client app requests autorestart to be enabled.

I don't have an installation of Cinnamon to test with, but you can pretty trivially confirm that the bug exists by running pkill -KILL orca or pkill -ABRT orca and observing that the screen reader doesn't get restarted.

See https://gitlab.gnome.org/GNOME/orca/-/issues/622 and https://gitlab.gnome.org/GNOME/orca/-/merge_requests/255 for some more details.

主要言語
C
スター
30
フォーク
44
平均マージ
19日 3時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linuxmint/cinnamon-session のほかの issue

linuxmint/cinnamon-session の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。