我有一个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如何确定应用程序是否正在运行,使图标保持在架子上?
通常我把我的。desktop文件放在我的home目录下的。local/share/applications
是通知发送二进制/脚本找到吗?我认为/usr/bin/experiment脚本会完成,所以启动器不应该显示它正在运行,对吧?
启动器启动它。如果它正在运行,启动器仍然会有它的pid来显示它正在运行/未运行。