Skip to content

Conversation

@jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Sep 11, 2025

Attempt to flatpak Terminal Gtk4

Copies a fair amount of code from BlackBox for spawning commands on the host from within the sandbox, modified to fit in with existing Terminal code.

This is based on the Gtk4 port to minimize the diff, but is not intended to be merged before the port itself has been merged as quite substantial changes are required.

@danirabbit
Copy link
Member

Ptyxis might be a better model. I think I trust Christian more to know the right sandbox holes needed https://gitlab.gnome.org/chergert/ptyxis

@jeremypw
Copy link
Collaborator Author

jeremypw commented Sep 11, 2025

@danirabbit Thanks, I'll take a look. Either way it needs some fairly advanced programming (by my standards) to get Vte to work as if were installed on the host despite being in a sandbox. Its going to need a fair amount of copying from other projects! Not just a question of punching a few holes with the manifest unfortunately.

@jeremypw
Copy link
Collaborator Author

One advantage of BlackBox is that it is written in Vala so easier to understand and 'borrow' from 😝

 * Replace conditional compile with boolean
 * Avoid throwing some Errors
 * Utils only used in Flatpak
 * Make more like existing code
 * Fix code style
@jeremypw jeremypw changed the title Add flatpak manifest (based on BlackBox); adjust vte dependency Build as Flatpak Sep 14, 2025
@jeremypw
Copy link
Collaborator Author

jeremypw commented Sep 25, 2025

Something in the 7.1.2 release causes errors in flatpak-builder 😞 -

Running appstreamcli compose
Only accepting components: io.elementary.terminal, io.elementary.terminal.desktop
Processing directory: /home/jeremy/Elementary/terminal/.flatpak-builder/rofiles/rofiles-k3Bsjn/files
Composing metadata...
Run failed, some data was ignored.
Errors were raised during this compose run:
io.elementary.terminal
  E: icon-not-found

general
  E: filters-but-no-output
Refer to the generated issue report data for details on the individual problems.
Error: ERROR: appstreamcli compose failed: Child process exited with code 1

@jeremypw
Copy link
Collaborator Author

For some reason reverting to using @BASENAME@ for the output filename for the metainfo fixes the Flatpak build issue.

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