Repository navigation
VR のメニューの「プログラムを起動」から常駐を起動できるようにする - #16
Merged
Merged
Conversation
Steam は ~/.local/share/applications の .desktop から一覧を作るため、 install と常駐の起動時に .desktop を書き出し、uninstall で消す。 選ぶと start を実行する。あわせて start の reset-failed が出す 「not loaded」の警告を出さないようにする。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WFzzs99PCwsU4KiFvipgdu
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eeefcb54c9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
install と、それが起動した常駐が同時に書くと、共通の .new を 取り合ってリネームが失敗し、書きかけの中身も公開しうるため。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WFzzs99PCwsU4KiFvipgdu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by 回路 · project thread
背景
設定画面で自動起動を OFF にして「KxFCM を終了」を押すと、Frame を再起動した後に VR 側から起動し直す手段が無かった。VR のメニューの「プログラムを起動」の一覧に本ツールが出ないためである。
一覧の出どころ
一覧は Steam が作る。Steam は
~/.local/share/applications/などの.desktopを集め(SteamClient.Apps.ScanForInstalledNonSteamApps)、NoDisplay=trueの項目と、OnlyShowInかNotShowInで gamescope を外した項目を除いて並べる。選ぶとExecの行を実行する。根拠は次の 2 点である。docs/reference-apps.mdにこの仕組みの記述があり、同ツールは実際に.desktopで一覧へ項目を足している~/.local/share/applications/に.desktopを置いていた。shortcuts.vdfは空だった。KxFCM の.desktopは無かったvrmanifest の登録はこの一覧に関わらないので、vrmanifest は変えていない。
変更
Runtime::DesktopEntryを追加した。~/.local/share/applications/kx-frame-controller-manager.desktopを書き出し、選ぶと"<実行ファイル>" startを実行させる。常駐が既に動いていれば systemd は何もしない。TryExecを付けたので、実行ファイルが無ければ一覧から外れる。説明文(Comment[言語])は 9 言語そろえたinstallのときと、常駐(run)が起動するたびである。自動更新はinstallを通らずに版を上げるので、この PR より前の版から自動更新した環境にも、新しい版が起動した時点で入る。ユニットが無い環境(installを経ずにrunした開発中など)には書かない。中身が同じなら書かない。書くときは書き込みごとに名前を変えた一時ファイルへ書いてからリネームする(installと、それが起動した常駐が同時に書きうるため)uninstallで消す。ユニットの解除に失敗しても消すshortcuts.vdfなど)は書き換えない。Steam の稼働中に書くと上書きされるか壊れうるためであるstartで出ていた「Failed to reset failed state … not loaded」の警告を消した。ユニットが読み込まれていないとreset-failedが失敗するが、起動には差し支えない。この呼び出しの出力は捨てる(自動更新側のreset_failedも同じにした)確認
crystal tool format --check、crystal spec(373 件、失敗なし)、crystal build --no-codegen src/main.cr実機で確かめてほしいこと(仮定)
systemctl --userが使える前提であるIcon=input-gaming(freedesktop のアイコン名)が一覧でどう描かれるか。描かれなくても項目は出る見込み🤖 Generated with Claude Code
https://claude.ai/code/session_01WFzzs99PCwsU4KiFvipgdu