Skip to content

Linux compability#41

Draft
Sassy0P wants to merge 15 commits into
PetitTournesol:mainfrom
Sassy0P:linux-compability
Draft

Linux compability#41
Sassy0P wants to merge 15 commits into
PetitTournesol:mainfrom
Sassy0P:linux-compability

Conversation

@Sassy0P
Copy link
Copy Markdown

@Sassy0P Sassy0P commented May 18, 2023

Wanting to be able to use the program on linux, I started to create a compatibility layer and fixes for it.
There are still tests to do(aka use it more & and tests for windows usage too). But here is a first draft.

Everything is said in the commits but here is a sample:

  • Usage of pathlib to have a simple crossplatform way to use paths
  • Separating some function so that they are used depending the OS(setting wallpaper, toggling startup etc)

 - Ignore logs
 - Ignore resources
 - Replacing necessary joined path to use Path from pathlib(Also using Path function such .exists/read-write_text etc
 - Using array of args for compatability when neces
 - Fix color as some string defined color are not set on linux
 - Fixing icon loading such as on the config window
 - Seperating some functions into windows/lunix specific to be imported depending on the os (ex: run script, show/hide_files, changing wallpaper, shortcut, startup toggle, screens' area
 - Custom linux panic
 - Fix: Don't use overrideredirect on popup for linux
 - Depency alart for specific for linux(libportaudiot, ffmpeg) that are not automatically installed.
 - Fix: Check if pip is installed even if the pip_installed isn't set.
- start.pyw: Bad variable affectation
…ing by a script.

- Fix: use mutex for variables used across multiple threads
* fmt: black formatter

* feat: Add .gitignore
 - Ignore logs
 - Ignore resources

* fix: Add python cache to .gitignore

* feat: First stable linux compatability
 - Replacing necessary joined path to use Path from pathlib(Also using Path function such .exists/read-write_text etc
 - Using array of args for compatability when neces
 - Fix color as some string defined color are not set on linux
 - Fixing icon loading such as on the config window
 - Seperating some functions into windows/lunix specific to be imported depending on the os (ex: run script, show/hide_files, changing wallpaper, shortcut, startup toggle, screens' area
 - Custom linux panic
 - Fix: Don't use overrideredirect on popup for linux
 - Depency alart for specific for linux(libportaudiot, ffmpeg) that are not automatically installed.
 - Fix: Check if pip is installed even if the pip_installed isn't set.

* Fix: Adding try/except in cas discord isn't installed to not crash

* Fix: Use the valid "win32" and not "windows" for os check.

* Fix: Moving Dependencies into the mutual utils file.
- start.pyw: Bad variable affectation

* Fix: Windows shortcut creation for virtualenv python

* fix/linux: Moving dependencies in its own file

* Fix: import depencies for linux

* Fix: Using multiprocessing socket to close all instances without passing by a script.
- Fix: use mutex for variables used across multiple threads

* Fix: Adding specific Windows kill as it doesn't have killpg

* Fix/windows: Check for py/python/python3 executable not only py

* Add support for MacOS

* Update desktop shortcuts to work on MacOS

---------

Co-authored-by: SassyOP <sassyop@proton.me>
Co-authored-by: Sassy0P <126810860+Sassy0P@users.noreply.github.com>
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.

2 participants