processing / processing/processing4

launcher setting ignored in preferences.txt

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

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

主要言語
Java
スター
494
フォーク
183
平均マージ
4時間 39分
マージ済み PR(30日)
3

説明

In GitLab by @hamoid on Aug 12, 2021, 09:08

Description

Executing "Open Sketch Folder" on Arch Linux with i3wm and fish does not open the folder. I used to work around this by specifying a custom launcher setting. This worked in Processing 3.4, but not in later versions.

This affects very few people I guess (maybe 1?) but it would be nice if the launcher setting was enforced if present, as an override. The related lines are found here:

https://github.com/processing/processing4/blob/master/app/src/processing/app/platform/LinuxPlatform.java#L118

Expected Behavior

I can use Open Sketch Folder

Current Behavior

I can't use Open Sketch Folder. It opens a terminal window with text being printed forever in a loop.

Steps to Reproduce

Press Ctrl+K

Your Environment

  • Processing version: 4.0b
  • Operating System and OS version: up to date Arch Linux
  • Other information: using i3 window manager

Possible Causes / Solutions

I think a solution might be to tweak the order of the if statements: if a launcher is specified, use it, otherwise, try use the default approaches. But I don't know how messy touching any of that might be.

Old post about this issue:
https://discourse.processing.org/t/launcher-seems-to-be-ignored-in-the-preferences/10840/7

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

app/src/processing/app/platform/LinuxPlatform.java の 118 行目付近から始め、 「Open Sketch Folder」に対して launcher の設定がどのように選択されるかを調べてください。Arch Linux 上で i3wm と fish を使い、Ctrl+K で問題を再現した後、設定済みの launcher が使用され、ターミナルループなしでフォルダーが開くことを確認してください。

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

評価

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

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

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