Opened 2 years ago

Last modified 2 years ago

#13427 new enhancement

Package Uninstall should run a Bash Script too

Reported by: AGMS Owned by: bonefish
Priority: normal Milestone: Unscheduled
Component: Servers/package_daemon Version: R1/Development
Keywords: .PackageInfo post-install-scripts uninstall Cc: agmsmith@…
Blocked By: Blocking:
Has a Patch: no Platform: All


There's a .PackageInfo keyword for "post-install-scripts" which comes in useful for making desktop icons (a symbolic link to the executable in the user's desktop folder) and other installation type activities. It would be useful to have a "pre-uninstall-scripts" entry too, so we can undo things that were done during install (like removing desktop icons).

Change History (1)

comment:1 Changed 2 years ago by Giova84

I would like to point out that the post-install-script is also useful not only for making desktop icons and links (and more generally, to write files outside of the read-only directories), but also to display a notification after that a package has been installed, since currently, after that a package has been installed, there is a "total silence". As example I achieve this by using

notify --type important --group "Package Installation" --title "Done" --timeout 8 --icon /boot/system/apps/Installer "Wonderful package successfully installed"

(I filed this enhancement on ticket:13413)

Your suggestion for "pre-uninstall-scripts" would be also very useful, and I think of this since a long time, so "+1" for your idea.

Last edited 2 years ago by Giova84 (previous) (diff)
Note: See TracTickets for help on using tickets.