Skip to content

Conversation

@LGTM-but-NY
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