Repository navigation
Startup Scripts
Updainium can run a small JavaScript file each time it starts. The file is called init.js, and it lives in Updainium's configuration folder. Use it for setup code that should run on every launch.
The file is stored in the configuration folder. For example, on macOS it is ~/Library/Application Support/com.livrasand.updainium/init.js. See Configuration Reference for the folder on Windows and Linux.
To create or edit it, open the Command Palette and run Open init.js. If the file does not exist, Updainium creates an empty one and opens it in your default text editor.
The script runs inside the app's WebView, with access to standard browser APIs. A minimal example:
console.log("Updainium custom init script loaded");Scripts run after the app starts, using the same permissions as the app's interface. They cannot change the Rust backend, and they cannot read GitHub tokens, which stay in the operating system's credential store.
- An empty file, or one that contains only whitespace, is skipped.
- Updainium runs the file's code when the app starts. Changes take effect on the next launch.
- Updainium does not display errors from
init.js. A script that throws an exception stops at that point, and nothing is shown. Keep scripts small and test them carefully.
init.js is trusted code. It is not sandboxed and has the same access as the app's interface. Only use scripts you have written or reviewed yourself.
Home · Discussions · Report a Bug · Contribute
Found something missing or outdated? Help improve this manual. Every contribution makes Updainium easier to use.
Made with ❤️ by the Updainium community.
Getting Started
User Guide
- Application Library
- Adding Applications
- Managing Applications
- Release Information
- Downloads and Verification
- Backups and Restore
- Settings and Preferences
Customization
Platform Guides
Developer Documentation
- Architecture Overview
- Supported Providers
- Plugin Development
- Configuration Reference
- Deep Links
- Security Model
- Contributing
Reference and Support