分页: 1 / 1
自制deb包,怎样使得安装后弹出“需要重启”的那个对话框???
发表于 : 2008-11-20 16:28
由 GChan
在ubuntu下,在更新了一些重要的更新后,
系统都在桌面面板上弹出“气球“,即出现"需要重启"按钮!
那个是如何实现的呢?
可不可以提供一些思路?
谢谢!
Re: 自制deb包,怎样使得安装后弹出“需要重启”的那个对话框???
发表于 : 2008-11-21 9:36
由 chasye
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"
Re: 自制deb包,怎样使得安装后弹出“需要重启”的那个对话框???
发表于 : 2008-11-27 14:08
由 GChan
之前都在忙其他的事;
谢谢 chasye兄,我试试。
Re: 自制deb包,怎样使得安装后弹出“需要重启”的那个对话框???
发表于 : 2008-11-27 16:49
由 GChan
刚才我在搜索nofify-send的过程中,发现了另外一种方式:zenity。这个也可以。参考(
http://www.oceanboo.cn/read.php/246.htm)