Skyedra / UnspamifyUbuntu

Remove spam from Ubuntu
MIT License
152 stars 9 forks source link

Suggestion #11

Open helpdeskdan opened 5 months ago

helpdeskdan commented 5 months ago

Firstly, thanks for all this! I was completely fine with the livepatch tip, but this has gotten totally out of hand. Also, I don't think that "sudo pro config set apt_news=false" works.

Now that I have to do all this junk, I find myself inclined to want said live patch tip gone as well. This is easily accomplished by editing /usr/lib/python3/dist-packages/UpdateManager/Dialogs.py and cobbling this function to return False.

    def _is_livepatch_supported(self):
        return False # Cut it out, #@&# it!
        di = distro_info.UbuntuDistroInfo()
        codename = get_dist()
        return di.is_lts(codename)

Credit: MikeR