Skip to content

Commit ca31038

Browse files
committed
Fixed flatpak-spawn
1 parent 7f3b1ea commit ca31038

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

res/CHANGELOG.txt

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ TODO: A bug with going back in the import wizard
88
TODO: GitHub import needs pagination
99
TODO: Test GitHub import on a large public project
1010
- Flowkeeper window now hides automatically on auto-start (#102).
11+
- Flowkeeper now supports Flatpak (#63).
1112

1213
### v0.9.1 (15 January 2025)
1314

res/CREDITS.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
Constantine Kulak <https://github.com/co-stig>: Author and maintaner.
1+
Constantine Kulak <https://github.com/co-stig>: Flowkeeper author.
2+
3+
Marco Sarti <[email protected]>: AUR package maintainer.
4+
5+
faveoled <https://github.com/faveoled>: Flatpak package maintainer.
26

37
Flowkeeper is built using Qt Community Edition by The Qt Company <https://www.qt.io/licensing>.
48

src/fk/core/abstract_settings.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,11 @@ def __init__(self,
299299
'$ espeak "Deleted work item {workitem.get_name()}"\n'
300300
'$ echo "Received {event}. Available variables: {dir()}"\n'
301301
'WARNING: Placeholders are substituted as-is, without any sanitization or escaping.', [], _always_show),
302-
('Integration.flatpak_spawn', 'bool', 'Execute commands via flatpak-spawn', 'True', [], _show_for_flatpak),
302+
('Integration.flatpak_spawn', 'bool', 'Prefix commands with flatpak-spawn --host', 'True', [], _show_for_flatpak),
303+
('Integration.flatpak_spawn_label', 'label', '', 'IMPORTANT: To run commands on the host (outside of Flatpak sandbox) you have to '
304+
'check the above checkbox and then grant Flowkeeper access to dbus. This has a major impact '
305+
'on the sandbox security, so do this only when strictly necessary:\n'
306+
'$ flatpak override --user --talk-name=org.freedesktop.Flatpak org.flowkeeper.Flowkeeper', [], _show_for_flatpak),
303307
('Integration.callbacks', 'keyvalue', '', '{}', get_all_events(), _always_show),
304308
],
305309
}

src/fk/core/integration_executor.py

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def on_event(self, full_event, **kwargs):
8484
args = shlex.split(formatted)
8585
if get_sandbox_type() == 'Flatpak' and self._settings.get('Integration.flatpak_spawn') == 'True':
8686
# Use flatpak-spawn to execute commands outside the sandbox
87+
args.insert(0, '--host')
8788
args.insert(0, 'flatpak-spawn')
8889
if logger.isEnabledFor(logging.DEBUG):
8990
logger.debug(f'Received event {full_event}. Executing: {args}')

src/fk/desktop/application.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def on_exception(self, exc_type, exc_value, exc_trace):
406406
'title': f'Unhandled {exc_type.__name__}',
407407
'body': f'**Please explain here what you were doing**\n\n'
408408
f'Versions:\n'
409-
f'{self._get_versions()}\n'
409+
f'{self._get_versions().replace('#', '# ')}\n'
410410
f'Stack trace:\n'
411411
f'```\n{to_log}```'
412412
})

0 commit comments

Comments
 (0)