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

Provide a Flatpak manifest #34

Merged
merged 26 commits into from
Jan 26, 2021
Merged

Provide a Flatpak manifest #34

merged 26 commits into from
Jan 26, 2021

Conversation

meisenzahl
Copy link
Member

Closes #33

@meisenzahl meisenzahl marked this pull request as ready for review November 21, 2020 12:36
@meisenzahl
Copy link
Member Author

I could use some help.

Feedback starts now, but the submenus for Default Apps, Panel Indicators and System Settings are empty. I assume that they are filled dynamically and that starting it as Flatpak will not find the applications.

Copy link
Contributor

@Marukesu Marukesu left a comment

Choose a reason for hiding this comment

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

Need some cleanups definitions and others minors changes.

io.elementary.feedback.yml Show resolved Hide resolved
io.elementary.feedback.yml Show resolved Hide resolved
io.elementary.feedback.yml Show resolved Hide resolved
io.elementary.feedback.yml Show resolved Hide resolved
io.elementary.feedback.yml Outdated Show resolved Hide resolved
io.elementary.feedback.yml Outdated Show resolved Hide resolved
io.elementary.feedback.yml Outdated Show resolved Hide resolved
@Marukesu
Copy link
Contributor

about the appstream error, the flatpak don't have access to the host metadata, so we need to include the needed files with the flatpak, or place them in a location that the flatpak can read if setted with appstream_pool.add_metadata_location.

it fix the Painel Indicators and System Settings, but for Default Appliications it fails in create the DesktopAppInfo.

@meisenzahl
Copy link
Member Author

@Marukesu thanks for your feedback!

@danrabbit what is your opinion how we want to continue?

@danirabbit
Copy link
Member

I think it would definitely be preferable to poke the right holes in the sandbox so it can read the installed apps from the system. It would be ultimately more maintainable to reflect what the user actually has installed

@Marukesu
Copy link
Contributor

adding appstream_pool.add_metadata_location ("/run/host/usr/share/metainfo") to MainWindow.vala makes the native appstream readable in the flatpak (running with --filesystem=host:ro), but it can't read the .desktop files.

(io.elementary.feedback:2): GLib-GIO-CRITICAL **: 18:52:32.607: g_app_info_get_display_name: assertion 'G_IS_APP_INFO (appinfo)' failed

(io.elementary.feedback:2): GLib-GIO-CRITICAL **: 18:52:32.607: g_app_info_get_icon: assertion 'G_IS_APP_INFO (appinfo)' failed

** (io.elementary.feedback:2): CRITICAL **: 18:52:32.607: feedback_repo_row_construct: assertion 'title != NULL' failed

(io.elementary.feedback:2): GLib-GObject-CRITICAL **: 18:52:32.607: g_object_ref_sink: assertion 'G_IS_OBJECT (object)' failed

(io.elementary.feedback:2): Gtk-CRITICAL **: 18:52:32.607: gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

@Marukesu
Copy link
Contributor

Well, since DesktopAppInfo won't work inside the flatpak, i changed the app to use only the appstream metadata and worked. But, to have the icons, the appdata need the icon tag (none of the needed apps have it, through).

Captura de tela de 2020-11-26 22-35-20

Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

This at least builds and shows apps, I think we can follow up later with a solution for all app icons. That probably means adding icons to other components appdata files. So I think this is good to merge :)

@danirabbit danirabbit merged commit 770eec9 into master Jan 26, 2021
@danirabbit danirabbit deleted the provide-a-flatpak-manifest branch January 26, 2021 22:29
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.

Provide Flatpak manifest
3 participants