在ubuntu下,在更新了一些重要的更新后,
系统都在桌面面板上弹出“气球“,即出现"需要重启"按钮!
那个是如何实现的呢?
可不可以提供一些思路?
谢谢!
自制deb包,怎样使得安装后弹出“需要重启”的那个对话框???
-
- 帖子: 9
- 注册时间: 2008-11-20 16:22
-
- 帖子: 333
- 注册时间: 2007-05-13 15:20
Re: 自制deb包,怎样使得安装后弹出“需要重启”的那个对话框???
postinst
dpkg -e "some_package-version.deb" will extract a dir called; DEBIAN, you will find this script in it.
append:
notify-send -i dialog-information "A new xxx package installed" "xxx restart is required"
nofify-send is in package "libnotify-bin"
dpkg -e "some_package-version.deb" will extract a dir called; DEBIAN, you will find this script in it.
append:
notify-send -i dialog-information "A new xxx package installed" "xxx restart is required"
nofify-send is in package "libnotify-bin"
-
- 帖子: 9
- 注册时间: 2008-11-20 16:22
Re: 自制deb包,怎样使得安装后弹出“需要重启”的那个对话框???
之前都在忙其他的事;
谢谢 chasye兄,我试试。
谢谢 chasye兄,我试试。
-
- 帖子: 9
- 注册时间: 2008-11-20 16:22
Re: 自制deb包,怎样使得安装后弹出“需要重启”的那个对话框???
刚才我在搜索nofify-send的过程中,发现了另外一种方式:zenity。这个也可以。参考(http://www.oceanboo.cn/read.php/246.htm)