Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在符合 POSIX 的系统上,如何检测 X 是否正在运行以及它是否可用于应用程序。
检查是否$DISPLAY有值,并尝试连接该地址的服务器。
$DISPLAY