我有一个 chromebook,安装了 chromeos 并激活了 linux。
我有以下文件:
/usr/share/applications/experiment.desktop
:
[Desktop Entry]
Name=Experiment
GenericName=Experiment
Exec=/usr/bin/experiment
Type=Application
/usr/bin/experiment
:
#!/bin/sh
sleep 10
notify-send "done" # sends a pop up notification
如果我通过 ChromeOS 启动器启动应用程序,该图标不会留在启动器中,而是/usr/bin/experiment
明确运行(从 10 秒后出现的弹出窗口可以看出)。
ChromeOS 如何确定应用程序是否正在运行,因此图标会留在搁架中?