summaryrefslogtreecommitdiff
path: root/backend/main.py
AgeCommit message (Collapse)Author
2023-10-25Merge aa/type-cleanup-py (work by marios, aa, wolv)v2.10.6-pre1TrainDoctor
2023-07-21Ignore chmod if decky is not run as root (#510)Party Wumpus
* Ignore chmod if decky is not run as root * I can't read * i managed to make a mistake on 2/3 lines i edited.... * add warning on startup * logger.warn is depreciated * Update localplatformlinux.py
2023-04-24Feat/configurable paths (#404)v2.7.2-pre2suchmememanyskill
2023-04-03Add plugin reordering (#378)Travis Lane
* feat: started work on saving plugin order * feat: implemented local ReorderableList * feat: reoder complete except for usage of DFL * switched to using dfl reorderableList * fix: added missing file and removed frag * updated to newest dfl * Update defsettings.json * fix: plugin order was missing on init * fix: now await pluginOrder * fix: moved the plugin-order load to plugin-loader * chore: v6 and dfl bump
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-01-22Expose useful env vars to plugin processes (#349)v2.5.2-pre1v2.5.2Philipp Richter
* recommended paths for storing data * improve helper functions
2023-01-16move the chownv2.4.14-pre1AAGaming
2023-01-16fix missing await on chown_plugin_dirv2.4.13-pre1AAGaming
2023-01-15Aa/bump dfl navigation fix jan2023 (#341)v2.4.10-pre1TrainDoctor
* fix React DevTools * bump DFL to fix Navigation * Bump DFL and add shims * fix shims not applying due to timing issue Co-authored-by: AAGaming <aa@mail.catvibers.me>
2023-01-07Fix reloading UI on updates and restarting steam (#303)v2.4.9-pre1AAGaming
2022-12-28shut down steam instead of restarting it to avoid broken CEF debugger ↵AAGaming
(gamescope will restart stean for us instead)
2022-11-19fix broken trycatch causing occasional injection failuresAAGaming
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-11-13Fix desktop mode loop (#253)v2.4.1-pre1TrainDoctor
* fix desktop mode making injector get stuck * Fix imports and variable references * Get data for all messages Co-authored-by: AAGaming <aa@mail.catvibers.me>
2022-11-04Fix on steam client beta, restart steam instead of reloading tab since that ↵v2.3.2-pre1AAGaming
is broken
2022-10-24preview 10/21/2022 fixes (#234)AAGaming
* initial fixes: everything working except toasts and patch notes * tabshook changes, disable toaster for now * prettier * oops * implement custom toaster because I am tired of Valve's shit also fix QAM not injecting sometimes * remove extra logging * add findSP, fix patch notes, fix vscode screwup * fix patch notes * show error when plugin frontends fail to load * add get_tab_lambda * add css and has_element helpers to Tab * small modals fixup * Don't forceUpdate QuickAccess on stable * add routes prop used to get tabs component * add more dev utils to DFL global
2022-10-14fix os.pathAAGaming
2022-10-08use hasattr instead of inAAGaming
2022-10-08possibly fix zip permissionsAAGaming
2022-09-18fix plugin loading after install, move updater reloads to loaderAAGaming
2022-08-31Give SettingsManager a default directoryv2.0.5-pre20TrainDoctor
2022-08-26Refractor plugin backend (#111)v2.0.5-pre18botato
* refractor uninstall plugin backend * refractor plugin installation method * Change formatting in browser.py * Manually format main.py * Manually format utilities.py * remove inconsistency * remove unnecessary linebreaks * lol what * last minute pythoning * Fix async missing * lint * more refractor * await forgotten * fix: menu not disappearing after first click * lint * bug: fix double click on uninstall * depricate request installs * basic patch notes viewer, lazy-load settings and store, build frontend as esmodule, add lazy-loaded react-markdown, backend changes to accomodate ESModule frontend * refractor uninstall plugin backend * Change formatting in browser.py * Manually format main.py * Manually format utilities.py * remove unnecessary linebreaks * lol what * last minute pythoning * Fix async missing * rebase onto main * fix error, fix React crash if patch notes are opened before remote version info is loaded Co-authored-by: TrainDoctor <traindoctor@protonmail.com> Co-authored-by: AAGaming <aa@mail.catvibers.me>
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-24Settings API for loader, preview branch selectAAGaming
2022-08-21Add plugin updater, notification badge, fixesv2.0.5-pre15AAGaming
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-14less stupid methodAAGaming
2022-08-14fix loader not re-injecting on restartAAGaming
2022-08-13FINALLY fix the multiple injections bugv2.0.5-pre.8AAGaming
2022-08-13fix injecting twicev2.0.5-pre.7AAGaming
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-08-02API for patching existing routes, lower power usev2.0.4-ab6ec98-preAAGaming
2022-07-25Better install process UX, fix reinstallingv2.0.4-afb2c7c-preAAGaming
2022-07-14Updater for decky-loader (#117)AAGaming
* Add an updater in settings for decky-loader * add chmod * remove junk comments
2022-07-11Use call instead of Popen (#113)botato
2022-06-30backwards-compatible plugin store, legacy plugin libraryAAGaming
2022-05-30react: Add Router hook & fix typescript issues (#68)AAGaming
* add rollup watch command, add pnpm lockfile * wait for react * add WIP patcher, window hook, and webpack * fix typescript, fix React, lint, add pnpm to gitignore * actually fix react * show frontend JS errors in console * cleanup * Add Router hook * Remove console.log * Expose routerHook in createPluginAPI Co-authored-by: Jonas Dellinger <jonas@dellinger.dev>
2022-05-26display overhaul, compatibility with legacy plugins, fixesmarios
2022-05-13Work on react frontend loaderJonas Dellinger