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

feat: Add auto-run functionality to the Windows app #74

Merged
merged 28 commits into from
Nov 11, 2024

Commits on Nov 10, 2024

  1. feat: Add auto-run functionality to the Windows app

    Fixes #58
    
    Add auto-run functionality to the Windows app.
    
    * Add `set_auto_run` and `remove_auto_run` functions in `monitor-app/src/core/app_settings.py` to create and remove registry entries for auto-run.
    * Modify `SettingsLoader` class in `monitor-app/src/core/app_settings.py` to include `auto_run` setting.
    * Add a checkbox in `monitor-app/src/gui/settings_dialog.py` to enable/disable auto-run functionality.
    * Modify the `save_settings` method in `monitor-app/src/gui/settings_dialog.py` to save the `auto_run` setting.
    * Import `set_auto_run` and `remove_auto_run` in `monitor-app/main.py`.
    * Modify the `initialize_application` function in `monitor-app/main.py` to call `set_auto_run` or `remove_auto_run` based on the setting.
    
    ---
    
    For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/bl4ckswordsman/disco-beacon/issues/58?shareId=XXXX-XXXX-XXXX-XXXX).
    bl4ckswordsman committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    7fb2729 View commit details
    Browse the repository at this point in the history
  2. Add auto-run functionality to application settings

    * **Core Settings**:
      - Add `set_auto_run` and `remove_auto_run` functions to manage registry entries for auto-run.
      - Modify `SettingsLoader` class to include `auto_run` setting.
    
    * **GUI Settings Dialog**:
      - Add a checkbox to enable/disable auto-run functionality.
      - Modify `save_settings` method to save the `auto_run` setting.
    
    * **Main Application**:
      - Import `set_auto_run` and `remove_auto_run` from `app_settings`.
      - Import `os` module.
      - Modify `initialize_application` function to call `set_auto_run` or `remove_auto_run` based on the setting.
    bl4ckswordsman committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    74bf839 View commit details
    Browse the repository at this point in the history
  3. Add auto-run functionality to application settings

    * **Core settings**:
      - Add `set_auto_run` and `remove_auto_run` functions to manage registry entries for auto-run.
      - Modify `SettingsLoader` class to include `auto_run` setting.
    
    * **GUI settings dialog**:
      - Add a checkbox to enable/disable auto-run functionality.
      - Modify `save_settings` method to save the `auto_run` setting.
    
    * **Main application**:
      - Import `set_auto_run` and `remove_auto_run` functions.
      - Modify `initialize_application` function to call `set_auto_run` or `remove_auto_run` based on the setting.
    
    * **Platform utilities**:
      - Add `is_windows` function to check if the current platform is Windows.
    bl4ckswordsman committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    f870be3 View commit details
    Browse the repository at this point in the history
  4. Add platform check for Windows before setting auto-run

    * **`app_settings.py`**
      - Add `is_windows` check in `set_auto_run` and `remove_auto_run` functions
      - Import `is_windows` from `platform_utils`
    
    * **`main.py`**
      - Add `is_windows` check before setting or removing auto-run
      - Import `is_windows` from `platform_utils`
    bl4ckswordsman committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    6c010c4 View commit details
    Browse the repository at this point in the history
  5. Add error handling in remove_auto_run to catch FileNotFoundError

    * Wrap `winreg.OpenKey` and `winreg.DeleteValue` in a try-except block
    * Catch `FileNotFoundError` and pass
    bl4ckswordsman committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    9fe9601 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    06469d9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    05dd72c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    017d498 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    78dd517 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    50b5f9a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6538d18 View commit details
    Browse the repository at this point in the history
  12. refactor: Refactor autorun handling to improve registry updates and s…

    …treamline settings management
    bl4ckswordsman committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    013f679 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    20a9f51 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a15d363 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1d5b20e View commit details
    Browse the repository at this point in the history
  16. feat: Update Windows build configuration to use windows_main.pyw and …

    …add debug toggle in test spec
    bl4ckswordsman committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    d95868f View commit details
    Browse the repository at this point in the history
  17. feat: Enhance Windows build workflow with debug mode input and add wi…

    …ndows_main.pyw entry point
    bl4ckswordsman committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    ade08cf View commit details
    Browse the repository at this point in the history
  18. fix: Update Windows build workflow to use disco_beacon_win_test.spec …

    …for debug mode configuration
    bl4ckswordsman committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    1ca1ef7 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. feat: Refactor settings management to dynamically determine settings …

    …file path and improve autorun handling
    bl4ckswordsman committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    e1b61d7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c933711 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    243478f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f4f7577 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9302f4b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cf97f20 View commit details
    Browse the repository at this point in the history
  7. docs: Update README with settings storage locations for Windows and L…

    …inux
    
    refactor: Remove unused imports in main.py and settings_dialog.py
    bl4ckswordsman committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    eaf0c67 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    12277af View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cc96fd9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    655e7d7 View commit details
    Browse the repository at this point in the history