为什么Network-Manager无法绑定到任何连接时关闭?

当Network-Manager无法将我的Ubuntu绑定到任何连接时,一段时间后它就会关闭。 通知区域(或指示器区域)中的图标消失,并且不再运行。 例如,当没有以太网网络或无线网络时,会发生这种情况。

尽管如此,这是一个问题,因为我经常在启动计算机后插入以太网电缆。 因此,我点击了Alt + F2 ,然后键入nm-applet 。 但我对这个解决方案并不满意,因为我觉得它不够直观。

有没有办法让Network-Manager始终运行?

我在Ubuntu 10.10上有网络管理器0.8.1,但这已经很长时间了,至少一年。

这在过去发生在我身上,但我从来没有对它进行故障排除。 通常,有了这种间歇性问题,我将使用以下脚本来保持应用程序运行并收集有关它退出原因的信息:

 #!/bin/bash # Automatically relaunch applications that exit unexpectedly, and log stdout for analysis. # Usage: relauncher.sh "application" # Command to (re)run app="$1" # Infinite loop while true; do # Get starting time start_epoch=$(date +%s) # Run application and capture output in memory log=$( { $app ; } 2>&1 ) # Run in background { # Notify in system tray (Waits here until clicked) zenity --notification --text "$app has exited. Click to view details." # Write log to temp file logfile="$(mktemp)" echo "$log" > "$logfile" # View it gedit "$logfile" } & # Abort if the application exited too quickly end_epoch=$(date +%s) duration=$(( $end_epoch - $start_epoch )) if [[ "$duration" < 30 ]]; then zenity --notification --text "$app exited too quickly. Aborting relauncher." & exit fi done exit 

要使用它,请将可执行副本另存为~/bin/relauncher.sh ,然后在系统中▸首选项▸启动应用程序▸启动程序▸网络管理器▸使用/home/user/bin/relauncher.sh "nm-applet --sm-disable" 编辑 ,替换nm-applet --sm-disable /home/user/bin/relauncher.sh "nm-applet --sm-disable"

下一次小程序消失时,它将自动重新启动,通知区域中将出现一个图标。 单击图标以检查有关nm-applet退出的原因的信息,然后考虑通过ubuntu-bug nm-applet报告错误并附加任何相关的错误消息。