Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running binaries without installing schemas #389

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abmantis
Copy link
Contributor

@abmantis abmantis commented Feb 25, 2024

This allows using meson devenv to run the binaries without having to
install the schemas or manually setup XDG_DATA_PATH, which is usefull
during development.

gnome.compile_schemas() does not affect the installation, only meson devenv.

This allows using `meson devenv` to run the binaries without having to
install the schemas or manually setup XDG_DATA_PATH, which is usefull
during development.
@@ -4,6 +4,8 @@ install_data('org.erikreider.swaync.gschema.xml',

subdir('icons')

gnome.compile_schemas()
Copy link
Owner

Choose a reason for hiding this comment

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

Doesn't seem to update unless I remove the data dir in the compilation dir. Only works the first time I change the schema

Otherwise LGTM :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is true. I don't really know how to solve that, but I still think this is useful for development on a system without swaync installed (or on nix, where the schemas are isolated).

Copy link
Owner

@ErikReider ErikReider Mar 9, 2024

Choose a reason for hiding this comment

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

Might require something like this: https://mesonbuild.com/Reference-manual_functions.html#custom_target with build_always_stale to true should do the trick :)

@abmantis abmantis requested a review from ErikReider March 9, 2024 01:28
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