[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1068769: When removing a package with an entry in /etc/xdg/autostart/ ask the user whether the autostart file should be removed or remove it by default



Package: apt
Version: 2.6.1

See https://unix.stackexchange.com/questions/774058/shouldnt-files-in-etc-xdg-autostart-be-removed-when-removing-a-package/774068

Please make apt-get remove autostart entries from the /etc/xdg/autostart/ folder also if the --purge option is not used. Alternatively, prompt the user whether that autostart entry should also be removed.

Many or most users do not know about the --purge option and those who do probably don't always know which of all of their packages have an autostart entry. There is no command like apt-get clean to remove all dysfunctional autostart entries.

Files that cause things to autostart are different from any /etc/ config file which just provides some configs if the application is running. Cleaning up autostart entries if a software is removed is good practice, improves security, and is generally what the user would like to do. If the package is installed again, a new autostart entry would or could be created anyway and keeping it after removing a package is more likely to cause problems than anything else in that case such as the app autostarting twice. It does not make sense to keep autostart entries when packages get removed.


Reply to: