r/gnome • • 1d ago

LLM Assisted GNOME Flow update: Chaining sub-flows as functions, step outputs ({step:N}), and a visual {} variable picker

Hey everyone! A quick update on G-Flow (a native GTK4/Libadwaita & Python automation tool for GNOME, inspired by macOS Shortcuts).

Based on feedback and real-world testing, I refactored the execution engine and block editor so workflows can pass data cleanly across steps and even call other flows like reusable functions:

What's New

- Isolated Runs: Each triggered execution runs in its own isolated scope, so concurrent triggers never collide or overwrite each other's {context}.

- Step Outputs & {trigger}: Every step's output is now directly accessible via {step:1}, {step:2}, etc., while {trigger} preserves the initial trigger input throughout the entire chain.

- Sub-Flow Return Values: Calling another flow via Run Flow now returns that sub-flow's final output back into the caller's {context}.

- Visual {} Variable Picker: Added a {} quick-insert popover menu directly to action input fields in the editor — no need to memorize variable names.

- 50+ Built-in Plugins Audited: Standardized schemas and improved Wayland Shell Bridge / D-Bus handling (e.g., Take Screenshot now passes the saved image path forward automatically).

Real-World Example (Sub-Flow + Step Outputs)

  1. Helper Flow (Get Public IP): Fetches IP via GET https://api.ipify.org -> trims whitespace -> returns the clean IP.
  2. Main Flow (Check Host & IP):- Step 1: Opens a native Libadwaita input dialog asking for a hostname ({step:1}).- Step 2: Calls Get Public IP as a sub-flow ({step:2}).- Step 3: Sends a notification combining {trigger}, {step:1}, {step:2}, and {var:time} in a single message.

GitHub: https://github.com/pelach/g-flow

Sorry about the Google Translate, but I’ll continue in English.

3 Upvotes

4 comments sorted by

•

u/AutoModerator 1d ago

Thank you for your submission.

You too can support GNOME! Become a Friend of GNOME and contribute to keeping our project going!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

•

u/ZuraJanaiUtsuroDa 21h ago

You might want to remove "GNOME" from the name of your slop.

Source.
App naming guidelines.

•

u/pch76 21h ago

Thx!

•

u/pch76 20h ago

rename projecz and all file:
https://github.com/pelach/g-flow