jEdit GUI Windowsを開くシェルスクリプトで同時実行を停止できません。

jEdit GUI Windowsを開くシェルスクリプトで同時実行を停止できません。
#!/bin/sh
jedit file.txt
zenity --info
...several more more commands...
exit

予想される動作:私はスクリプトにコマンドを発行します(この場合はキーボードショートカットを介して)。 ㅏジェディットこれで私のウィンドウが開きます。Xfce4デスクトップ、ディスプレイコンテンツファイル.txt。テキスト操作を実行してから手動で閉じます。ジェディット窓。次にコマンドジェニティ期待どおりにウィンドウが表示されます。同じコンテンツを手動で閉じた後、スクリプトの次の手順を実行しました...喜びと満足感を感じました。

しかし、もし私が何らかの理由でもう手に入れた無関係ジェディットキーボードショートカットを使ってスクリプトをコマンドすると、デスクトップにウィンドウが開き、次のことが起こります。前述のようにスクリプトをコマンドすると、予想される結果が表示されます。ジェディットウィンドウ(内容を表示するウィンドウ)ファイル.txt)開いている、とともにこれジェニティウィンドウ(この場合ジェニティ窓が開く今後これジェディット窓は私が手動で閉じました。)これは不安定な行動です...怒って絶望感を感じます。

私はwaitコマンドや行terminalの後に追加することを含む多くのことを試しました &&。また、トラッピングも試みました。私には何も効果がありません。

これが起こる原因は何であり、どのように解決しますか?

ベストアンサー1

使用jedit -noserver。 ~からマンページ:

-background
      Run jEdit in background mode. In background mode, the  edit  server  will  continue
      listening  for  client  connections  even after all views are closed. Has no effect
      when connecting to another instance via the edit server.
-nobackground
      Disable background mode. This is the default. Has  no  effect  when  connecting  to
      another instance via the edit server.
...
-server
      Store  the  server  port  info  in  the  file  named  "server"  inside the settings
      directory. This is the default.
...
-noserver
      Do not attempt to connect to a running edit server, and does not start one either.

おすすめ記事