我想在每次登录(包括挂起后进行的登录)时都运行一次.sh脚本
它应该在后台运行,因此不会弹出任何外壳
脚本如下
#!/bin/bash
# Bash script to refresh the Extend Panel Menu extension that puts the clock in the wrong place after logon
gnome-shell-extension-tool -d extend-panel-menu@julio641742
sleep 1
gnome-shell-extension-tool -e extend-panel-menu@julio641742
它只是刷新了我在Ubunto 18.04中拥有的扩展名,该扩展名在我每次登录时都会配置错误。
这些登录后如何使它自动运行?