Hey, Apparmor does not know any environmental variables, so it cannot handle your case. In your usecase you have to update the @{xdg_data_home} and @{xdg_config_home} inside usr.bin.akonadiserver to point to the correct directories, than Apparmor should be fine with your setup. Or update /etc/ apparmor/tunables/home.
As this is not a default setup and I see no way how Apparmor rules could be better written to support your usecase. It seems it is more like a general user request for Apparmor. Regards, hefee
signature.asc
Description: This is a digitally signed message part.