Unfortunately there is no official automatic fix, it’s an old bugbear. The procedure is the same as for registering a personal library. For symbols:
For footprints, the corresponding section is:
Many people have developed their own hacks, usually involving editng the table files directly. For example: