The apparmor for xChat is not existed in
/etc/apparmor.d/and you should build your own. You can copy the following source code to the directory and enable it.
Step 1 :
sudo apt-get install apparmor-utils
sudo apt-get install xchat
Step 2 :
Make sure the line #19, #34 and #36 are match the installed version of Python. If you upgraded the Python to other version, make sure to change it accordingly; otherwise, xChat will not run as it is blocked by apparmor.
Copy the captioned source code and placed it to
/etc/apparmor.d/and name it as
Step 3 :
After making the changes (if any), then enable it.
sudo aa-enforce /etc/apparmor.d/usr.bin.xchat
That's all! See you.
Apparmor manual for Ubuntu