小编nat*_*ala的帖子

找到默认的终端模拟器

如何检测当前桌面环境中使用的是哪个终端模拟器(xtermgnome-terminal...)?像xdg-open,但用于终端模拟器。

我已经xdg-terminal在我的 Xubuntu 安装上尝试过这个脚本,但没有成功:

./xdg-terminal.sh: 305: [: x: unexpected operator
./xdg-terminal.sh: 399: [: xxterm: unexpected operator
xdg-terminal: configured terminal program 'xterm' not found or not executable
Run Code Online (Sandbox Code Playgroud)

它将用于在 C++ 程序中使用,因此任何脚本、包或内置命令都可以。

谢谢您的帮助 !

linux desktop terminal

7
推荐指数
1
解决办法
6301
查看次数

标签 统计

desktop ×1

linux ×1

terminal ×1