Skip to content

Fix updates for user installs in sandbox#1415

Merged
kolunmi merged 1 commit intobazaar-org:mainfrom
AlexanderVanhee:user-update-fix
Apr 14, 2026
Merged

Fix updates for user installs in sandbox#1415
kolunmi merged 1 commit intobazaar-org:mainfrom
AlexanderVanhee:user-update-fix

Conversation

@AlexanderVanhee
Copy link
Copy Markdown
Collaborator

Flatpak would set the .desktop file to point to the Flatpak executable found in the Bazaar sandbox, so breaking the .desktop file. Overwriting the FLATPAK_BINARY environment variable with the true Flatpak executable path fixes this.

I made it so user update fetching gets disabled if it can’t find the correct path.

@AlexanderVanhee AlexanderVanhee self-assigned this Apr 14, 2026
@AlexanderVanhee AlexanderVanhee added the bug Something isn't working label Apr 14, 2026
@renner0e
Copy link
Copy Markdown
Collaborator

I can confirm this fixes the issue under these conditions

flatpak install --user org.gnome.Calculator
flatpak update --user org.gnome.Calculator --commit=5e09c43a2b65723fd726685d08ec45f72e89669756ea9c07b440f385a027acc6 -y

refresh and click update in bazaar

image

@kolunmi
Copy link
Copy Markdown
Collaborator

kolunmi commented Apr 14, 2026

looks good! However g_strstrip returns dynamically allocated memory, you need to free

@AlexanderVanhee
Copy link
Copy Markdown
Collaborator Author

@kolunmi
Copy link
Copy Markdown
Collaborator

kolunmi commented Apr 14, 2026

o nvm :vlone:

@kolunmi kolunmi merged commit bd76372 into bazaar-org:main Apr 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants