Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/apparmor config issues #13

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RoadToDev101
Copy link

refactor(cursor_setup): enhance system configuration and error handling

  • Improved AppArmor profile creation with more robust syntax
  • Added dbus-x11 package installation check
  • Enhanced CLI command creation with better error handling and verification
  • Restructured several functions for improved readability and error management
  • Added more detailed logging and user feedback during system configuration steps

Error:

 ▶  Setting up AppArmor configuration...
                                                                         
 ◆  WARNING  AppArmor is not active. Enabling and starting the service...
 ✔  AppArmor service started and enabled.
Applying AppArmor profile \AppArmor parser error for /etc/apparmor.d/cursor-appimage in profile /etc/apparmor.d/cursor-appimage at line 1: Could not open 'abi/4.0': No such file or directory
 ✔  AppArmor profile successfully applied!

- Added LC_NUMERIC=C to convert_to_mb() function
- Prevents potential locale-related formatting issues
- Ensures consistent decimal point representation during file size conversion
- Improved AppArmor profile creation with more robust syntax
- Added dbus-x11 package installation check
- Enhanced CLI command creation with better error handling and verification
- Restructured several functions for improved readability and error management
- Added more detailed logging and user feedback during system configuration steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant