Thread: How to make a custom Debian package prompt for a restart after installation
i wondering how add need restart notification in debian package, upon installation, it'd pop tell user restart computer changes take effect. perhaps happens packages through update-manager when prompts user restart changes take effect.
there way that? perhaps adding @ end of "postinst" file?
update:
thinking it, add @ end of "postinst" file:
it'd work, not well. instance, if person isn't computer @ time.code:notify-send -t 86400000 -i /usr/share/icons/gnome/32x32/status/info.png "please restart computer changes take effect."
update 2:
option using zenity dialog box. might work. though, if done, wouldn't yes/no question box keep actual package technically finishing until user select yes/no restart?
ive used zenity in scripts run root , not simple because have export display user root. can done, id try alternative. if have no luck here, try asking in motu (people on charge of managing packages of ubuntu repos) #ubuntu-motu on 'irc.freenode.net'.
sam
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] How to make a custom Debian package prompt for a restart after installation
Ubuntu
Comments
Post a Comment