Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-snake committed Feb 14, 2025
1 parent fda4bae commit c76efb3
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,10 @@ jobs:

- name: Modify AppArmor for Chrome
run: |
# Check if AppArmor is enforcing Chrome's profile
if sudo aa-status --enabled && sudo aa-status | grep -q "usr.bin.chromium"; then
echo "Modifying AppArmor rules for Chrome..."
echo "/dev/shm/** rw," | sudo tee -a /etc/apparmor.d/usr.bin.chromium > /dev/null
echo "/tmp/** rw," | sudo tee -a /etc/apparmor.d/usr.bin.chromium > /dev/null
sudo apparmor_parser -r /etc/apparmor.d/usr.bin.chromium
else
echo "AppArmor is not enforcing Chromium, skipping modification."
fi
echo "Adding AppArmor permissions for Chrome..."
echo "/dev/shm/** rw," | sudo tee -a /etc/apparmor.d/usr.bin.chromium > /dev/null
echo "/tmp/** rw," | sudo tee -a /etc/apparmor.d/usr.bin.chromium > /dev/null
sudo apparmor_parser -r /etc/apparmor.d/usr.bin.chromium
- name: Save screenshots
run: |
Expand Down

0 comments on commit c76efb3

Please sign in to comment.