How auto-update works
gSubs uses theelectron-updater module to check for updates and manage the installation process:
- Check on launch: Every time gSubs starts, it checks for updates
- Background download: If an update is available, it downloads silently while you use the app
- Notification: When the download is complete, a notification bar appears at the top
- One-click install: Click the “Install & Restart” button to apply the update
Update notification
When an update has been downloaded and is ready to install, a notification bar appears at the top of the gSubs window:- Message: “New update is available.”
- Install button: Green button to install and restart
- Close icon: Dismiss the notification and install later
If you close the notification without installing, the update will still be available. The notification will reappear the next time you launch gSubs.
Installing updates
To install an update when the notification appears:Save your work
If you have any subtitle searches in progress, wait for them to complete or note which files still need processing.
Click Install & Restart
Click the green button labeled “Install & Restart”. gSubs will quit immediately.
Update events
The auto-updater tracks several events during the update process:- Log update activity for debugging
- Show the notification only when an update is ready
- Handle errors gracefully if the update check fails
Update communication flow
The update system uses IPC (Inter-Process Communication) to coordinate between the main process and renderer process:Main process → Renderer process
When an update is downloaded:Renderer process receives message
The renderer shows the notification:Renderer process → Main process
When you click the install button:Main process installs update
When updates are checked
Updates are checked automatically:- On app launch: Every time you start gSubs
- In the background: Checks don’t interrupt your work
- No manual checking needed: The process is completely automatic
Dismissing update notifications
If you want to install the update later:- Click the close icon (X) on the notification bar
- The notification disappears but the update remains downloaded
- You can continue using gSubs normally
- The notification will reappear the next time you launch the app
The downloaded update is stored locally and doesn’t need to be downloaded again. You can install it whenever you’re ready.
Update benefits
Keeping gSubs updated ensures you have:- Latest features: New subtitle sources, search improvements, and UI enhancements
- Bug fixes: Resolved issues and improved stability
- Security patches: Updated dependencies and security improvements
- API compatibility: Continued compatibility with SubDB and OpenSubtitles
Troubleshooting updates
If you don’t see update notifications:- Check your internet connection
- Ensure gSubs has permission to access the network
- Look for error messages in the app console (if developer tools are enabled)
- Try restarting gSubs to trigger a new update check
- Close gSubs completely and relaunch
- Check that you have sufficient disk space
- Verify you have write permissions in the app directory
- Download the latest version manually from the official website