Skip to content

fix(launch): split QUrl scheme check for empty vs file scheme - #377

Merged
BLumia merged 1 commit into
linuxdeepin:masterfrom
ComixHe:master
Jul 22, 2026
Merged

fix(launch): split QUrl scheme check for empty vs file scheme#377
BLumia merged 1 commit into
linuxdeepin:masterfrom
ComixHe:master

Conversation

@ComixHe

@ComixHe ComixHe commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

QUrl::toLocalFile() returns empty string when scheme is not "file",
so a bare path like "/tmp/foo" (empty scheme) was silently collapsed
to "" instead of being preserved as-is. Separate the two cases so
only file:// URLs get converted to local paths.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @ComixHe, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

QUrl::toLocalFile() returns empty string when scheme is not "file",
so a bare path like "/tmp/foo" (empty scheme) was silently collapsed
to "" instead of being preserved as-is. Separate the two cases so
only file:// URLs get converted to local paths.

Signed-off-by: Yuming He <heyuming@deepin.org>
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: BLumia, ComixHe

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@BLumia
BLumia merged commit f393a07 into linuxdeepin:master Jul 22, 2026
15 checks passed
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.

3 participants