Skip to content

fix: Handle malformed custom installation config files gracefully#850

Open
YusufErdemK wants to merge 1 commit intotchx84:masterfrom
YusufErdemK:fix/handle-malformed-installation-configs
Open

fix: Handle malformed custom installation config files gracefully#850
YusufErdemK wants to merge 1 commit intotchx84:masterfrom
YusufErdemK:fix/handle-malformed-installation-configs

Conversation

@YusufErdemK
Copy link
Copy Markdown

_parseCustomInstallation() did not wrap keyFile.load_from_file() in a
try-catch block. If /etc/flatpak/installations.d/ contained a malformed,
binary, or otherwise unreadable .conf file, Flatseal would crash entirely
instead of skipping the bad file.

Also simplify the version check in portals.js for readability:
Before: this._proxy.version >= SUPPORTED_SERVICE_VERSION === false
After: this._proxy.version < SUPPORTED_SERVICE_VERSION
(functionally equivalent, but clearer)

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.

1 participant