Skip to content

Installer: Handle AppArmor profile installation automatically #531

@qwertychouskie

Description

@qwertychouskie

Currently, the user is required to manually run these commands to install the AppArmor profiles necessary for many of the WPILib applications to work:

sudo cp ~/wpilib/YEAR/frccode/AppArmor/* /etc/apparmor.d/
sudo systemctl reload apparmor.service

The installer should probably handle this by default, as doing 95% of the installation manually but requiring the user to do the remaining 5% is extremely likely to result in the user missing the step and wondering why applications just silently don't launch. (This was my situation just minutes ago, hence me opening this issue.)

It is also possible to programmatically set the launcher on the desktop to allow launching, see https://askubuntu.com/a/1391903:

gio set "~/Desktop/FRC VS Code 2025.desktop" metadata::trusted true
chmod +x "~/Desktop/FRC VS Code 2025.desktop"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions