summaryrefslogtreecommitdiff
path: root/backend/helpers.py
AgeCommit message (Collapse)Author
2023-03-21Add cross-platform support to decky (#387)suchmememanyskill
* Import generic watchdog observer over platform specific import * Use os.path rather than genericpath * Split off socket management in plugin.py * Don't specify multiprocessing start type Default on linux is already fork * Move all platform-specific functions to seperate files TODO: make plugin.py platform agnostic * fix import * add backwards compat to helpers.py * add backwards compatibility to helpers.py harder * Testing autobuild for win * Testing autobuild for win, try 2 * Testing autobuild for win, try 3 * Testing autobuild for win, try 4 * Create the plugins folder before attempting to use it * Implement win get_username() * Create win install script * Fix branch guess from version * Create .loader.version in install script * Add .cmd shim to facilitate auto-restarts * Properly fix branch guess from version * Fix updater on windows * Try 2 of fixing updates for windows * Test * pain * Update install script * Powershell doesn't believe in utf8 * Powershell good * add ON_LINUX variable to localplatform * Fix more merge issues * test * Move custom imports to main.py * Move custom imports to after __main__ check Due to windows' default behaviour being spawn, it will spawn a new process and thus import into sys.path multiple times * Log errors in get_system_pythonpaths() and get_loader_version() + split get_system_pythonpaths() on newline * Remove whitespace in result of get_system_pythonpaths() * use python3 on linux and python on windows in get_system_pythonpaths() * Remove fork-specific urls * Fix MIME types not working on Windows
2023-02-19General Backend Fixes (#373)v2.6.0-pre1suchmememanyskill
* General Backend Fixes * Ajust helpers.get_loader_version() to never throw an exception
2023-02-19Expose a 'decky_plugin' module to decky plugins (#353)Philipp Richter
* Expose a 'decky_plugin' module to decky plugins * expose decky user home path * support 'py_modules' python modules in plugins * allow for a '_migration' method in plugins to have an explicit file moving step * Expose the plugin python module as .pyi stub interface * Expose system and user python paths to plugins
2023-01-22Expose useful env vars to plugin processes (#349)v2.5.2-pre1v2.5.2Philipp Richter
* recommended paths for storing data * improve helper functions
2022-11-19Fix for wrong path for settings json files (#258)v2.4.3v2.4.2-pre1Marco Rodolfi
Co-authored-by: AAGaming <aa@mail.catvibers.me>
2022-11-15Refactoring in preparation for WebSockets (#254)v2.4.1-pre2AAGaming
* Fix injector race conditions * add some more tasks * hide useless rollup warnings * goodbye to clientsession errors * completely fix desktop mode switch race condition * fix typos and TS warning in plugin error handler * fix chown error * start debugger if needed and not already started * fix get_steam_resource for the like 2 legacy plugins still using it lol * add ClientOSError to get_tabs error handling
2022-09-18Download Remote Binaries during Store Install (#177)v2.1.0-pre3Trent Callan
* Download Remote Binaries during store install. Fix Manual Install Modal Type * Use Unix Line endings. (Thanks WSL) * Fix Merge Commit with main branch.
2022-09-18add more URLs to bypass authenticationAAGaming
2022-08-31Give SettingsManager a default directoryv2.0.5-pre20TrainDoctor
2022-08-26basic patch notes viewer, lazy-load settings and store, build frontend as ↵AAGaming
esmodule, add lazy-loaded react-markdown, backend changes to accomodate ESModule frontend
2022-08-24Hide branch select until it's workingv2.0.5-pre17TrainDoctor
2022-08-18Add CEF Remote Debugging toggle (#129)v2.0.5-pre14Sefa Eyeoglu
* feat: add CEF Remote Debugging toggle * feat: disable remote debugger on startup * refactor: stop debugger instead of disable * feat: add option to allow remote debugging by default Co-authored-by: TrainDoctor <traindoctor@protonmail.com>
2022-08-13FINALLY fix the multiple injections bugv2.0.5-pre.8AAGaming
2022-08-08Add missing importv2.0.4-6bc8a4f-preTrainDoctor
2022-08-08Use Environment Variables (#123)Derek J. Clark
Uses environment variables instead of hard coding the "deck" user/group. This adds support for systems other than the steam deck that are using the DeckUI. * Use Environment Variables * Use method to get USER from a systemd root process * Fix imports. Add get_user and get_user_group methods in helpers.py. Removed duplicated code * Add separate setters/getters for user vars. Ensure sleep prevents race condition of user setter in while loop
2022-08-05Implement CSRF protectionAAGaming
2022-07-03Fixed plugin installation ssl verification issue (#101)WerWolv
* Added cert location debugging * Install certifi * Try adding manual cacert in install request * Properly use ssl * More efficiently load ssl certificate