pluma,我相信gedit也不会启动一个新的实例,如果它已经在运行,而是用现有的实例打开文件。然后调用立即返回。通常情况下,这是人们所期望的行为。但有时,当从脚本或程序调用编辑器时,立即返回是一个问题,该脚本或程序依赖于在返回调用之前编辑过的文件(例如git commit或crontab -e)。
是否有一种方法可以启动pluma的新实例,或者强制调用pluma (当一个实例已经打开时)不立即返回,但只在编辑器中关闭了所述文件之后才返回。
发布于 2018-10-07 09:14:49
操作系统: Ubuntu 18.04.1
$ gedit --version
gedit - Version 3.28.1
$ 我从发射器中打开gedit,将man gedit的一部分粘贴到其中,然后打开gnome-terminal并运行gedit -s & exit。这打开了gedit的一个新窗口。
来自man gedit:
-s,--以独立模式运行gedit。

编辑:我没有安装pluma,但是人褶没有列出-s选项。它确实
--new-window
Create a new toplevel window in an existing instance of pluma.
--new-document
Create a new document in an existing instance of pluma, on the
last Pluma window that had focus.类似于gedit的
--new-window
Create a new toplevel window in an existing instance of gedit.
--new-document
Create a new document in an existing instance of gedit.https://askubuntu.com/questions/1081615
复制相似问题