我尝试从菜单启动终端程序。例如,“airmon-ng”,我无法从桌面条目启动或找到 Exec 的正确语法。以下是桌面文件的示例。
[Desktop Entry]
Version=1.0
Type=Application
Name=airmon-ng
Exec=gnome-terminal -e '/usr/sbin/airmon-ng'
Terminal=true
Comment=Airmon-ng is used to manage wireless card modes and to kill unnecessary processes while using aircrack-ng. To sniff a wireless connection, you need to change your wireless card from managed mode to monitor mode and airmon-ng is used for that purpose.
Keywords=shell;prompt;command;commandline;cmd;intrusion detection system;IDS;wireless;network;security;detector; monitor;sniffer;
答案1
代替:
Exec=gnome-terminal -e '/usr/sbin/airmon-ng'
使用:
Exec=/usr/sbin/airmon-ng
并让你的Terminal=true
手柄提供一个终端。
airmon-ng
是错误的程序,请阅读man airmon-ng aircrack-ng
。airmon-ng
它只报告 WiFi 接口并退出,然后终端关闭。您似乎期待一个长时间运行的程序。