Skip to content

Submitting fixes and adding new features - #107

Open
hasanshinnar wants to merge 5 commits into
blavejr:masterfrom
hasanshinnar:master
Open

Submitting fixes and adding new features#107
hasanshinnar wants to merge 5 commits into
blavejr:masterfrom
hasanshinnar:master

Conversation

@hasanshinnar

Copy link
Copy Markdown

This PR documents and consolidates a series of improvements made to the fork. No original logic was removed; changes focus on modernization, cross-platform support, and code organization.


Changes

New Files

  • activate.bat Windows-friendly activation script, mirrors the existing activate.sh flow
  • run.py Single entry point to run both setup and the main script in one command
  • Extension_Sources.md Extracted extension definitions out of organiseDesktop.py for cleaner separation

Modified Files

Dockerfile

  • Reduced unnecessary layers for a leaner, faster build

Clean.py

  • Removed root.resizable and position constraints for better layout flexibility
  • Code modernization and minor performance improvements

CronController.py

  • Refactored for readability and efficiency
  • Fixed bugs in the Windows-specific code path

organiseDesktop.py

  • Merged list_directory_content() into mover() to reduce overhead
  • Added _PatternRules: matches files by exact name in addition to extension
  • General logic and performance improvements

Extension.json

  • Added _PatternRules entries to support exact filename matching

Renamed

  • setup.pyenvironment.py to avoid conflict with Python's built-in setup.py convention

README

  • Appended a Fork Modifications section at the bottom, original content untouched

Testing

  • Tested on Windows 10
  • Virtual environment setup verified via both activate.bat (Windows) and activate.sh (Linux)
  • File organization logic verified with _PatternRules entries

- Removed unnecessary imports and streamlined the code in organiseDesktop.py.
- Introduced a function to get the desktop path based on the operating system.
- Simplified the initialization of the OrganiseDesktop class and its methods.
- Enhanced the mover method to prioritize sorting based on patterns and extensions.
- Updated the logging mechanism to write to a log file more efficiently.
- Created a new environment.py file to handle environment setup and package configuration.
- Removed the setup.py file and integrated its functionality into environment.py.
- Added Extension_Sources.md to document sources for file extensions.
- Updated run.py to launch the desktop organizer with improved environment checks.
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