Skip to content

Fix flatpak devel build bottles-cli functionality#4371

Merged
mirkobrombin merged 4 commits intobottlesdevs:mainfrom
ignapk:gschema-devel-app-id
Feb 5, 2026
Merged

Fix flatpak devel build bottles-cli functionality#4371
mirkobrombin merged 4 commits intobottlesdevs:mainfrom
ignapk:gschema-devel-app-id

Conversation

@ignapk
Copy link
Contributor

@ignapk ignapk commented Feb 2, 2026

Description

When testing #3948 I noticed that running the desktop launchers created from bottles flatpak devel build does not work, and the error mentions missing com.usebottles.bottles.Devel schema. Turns out this is because the desktop entry uses the bottles-cli functionality, and while in most parts of the application the gschema is hard coded to "com.usebottles.bottles", in that particular code the name is derived from the application id.

Related #3948

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.

  • Try to run an app installed in a bottle from the created desktop entry using a flatpak devel build

Use the APP_ID constant instead, so it's possible to better support
devel builds in the future.
Use the APP_ID constant instead, so it's possible to better support
devel builds in the future.
Use the APP_ID constant instead, so it's possible to better support
devel builds in the future.
Currently, when running flatpak Bottles devel build with bottles cli,
the program fails with an error about missing a gschema. This is because
there's a discrepancy between the app id and the gschema when running
the development build.

Fix it by specifying the correct schema name, by setting it to the
application id.
Copy link
Member

@mirkobrombin mirkobrombin left a comment

Choose a reason for hiding this comment

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

LGTM

@mirkobrombin mirkobrombin merged commit 8042ef1 into bottlesdevs:main Feb 5, 2026
@ignapk ignapk deleted the gschema-devel-app-id branch February 6, 2026 21:36
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.

2 participants