Agm*_*nor 6 applet 10.10 network-manager connection
当网络管理器无法将我的 Ubuntu 绑定到任何连接时,它会在一段时间后关闭。通知区(或指示区)的图标消失,不再运行。例如,当确实没有以太网或无线网络时,就会发生这种情况。
尽管如此,这是一个问题,因为我经常在启动计算机后很久才插入以太网电缆。因此,作为一个黑客,我点击Alt+ F2,然后输入nm-applet. 但是我对这个解决方案并不满意,因为我认为它不够直观。
有没有办法让网络管理器始终运行?
我在 Ubuntu 10.10 上安装了 Network-Manager 0.8.1,但这种情况已经持续了很长时间,至少一年。
我过去也遇到过这种情况,但我从来没有抽出时间来解决它。一般来说,对于这种间歇性问题,我将使用以下脚本来保持应用程序运行并收集有关其退出原因的信息:
\n\n#!/bin/bash\n# Automatically relaunch applications that exit unexpectedly, and log stdout for analysis.\n# Usage: relauncher.sh "application"\n\n# Command to (re)run\napp="$1"\n\n# Infinite loop\nwhile true; do\n\n # Get starting time\n start_epoch=$(date +%s)\n\n # Run application and capture output in memory\n log=$( { $app ; } 2>&1 )\n\n # Run in background\n {\n # Notify in system tray (Waits here until clicked)\n zenity --notification --text "$app has exited. Click to view details."\n\n # Write log to temp file\n logfile="$(mktemp)"\n echo "$log" > "$logfile"\n\n # View it\n gedit "$logfile"\n } &\n\n # Abort if the application exited too quickly\n end_epoch=$(date +%s)\n duration=$(( $end_epoch - $start_epoch ))\n if [[ "$duration" < 30 ]]; then\n zenity --notification --text "$app exited too quickly. Aborting relauncher." &\n exit\n fi\n\ndone\n\nexit\nRun Code Online (Sandbox Code Playgroud)\n\n要使用它,请将可执行副本另存为~/bin/relauncher.sh,然后在系统\xe2\x96\xb8首选项\xe2\x96\xb8启动应用程序\xe2\x96\xb8启动程序\xe2\x96\xb8网络管理器\xe2\x96\ xb8 编辑,替换nm-applet --sm-disable为/home/user/bin/relauncher.sh "nm-applet --sm-disable".
下次小程序消失时,它将自动重新启动,并在通知区域中出现一个图标。单击该图标可检查有关 nm-applet 退出原因的信息,然后考虑通过报告错误ubuntu-bug nm-applet并附加任何相关错误消息。