Hi Marius,
Setting activate-by-default=false` to `true` did the trick. Works just like on desktop, and looks pretty nice.
I'll look at adding the activation code in. Another use case is launching chrome with the url_launcher plugin.
Thanks!
Joel
On Wed, Nov 1, 2023 at 12:31 AM Marius Vlad via lists.automotivelinux.org <marius.vlad=collabora.com@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Joel,
The activation is split into two distinct processes/phases:
- start-up and activate
- switching application
For the first part, the agl-shell client registers an event handler
which the compositor sends whenever an new application starts. When that
event comes in, it has the application id and with it, a certain state.
It is then when the agl-shell client activates the application. This
used to be handled implicitly by the compositor, but it is handled explicitly
now. If the application doesn't have an application id, we can't
activate it.
For the second part, this is trigged by input user events, is similar to the
first one, it is merely an activation request.
This has the effect that whenever a new application starts it it will be
automatically activated by the shell client. If you don't see zenity
displayed from the beginning I speculate that maybe it doesn't have an
application id set-up. By modifying the [core] section and change
`activate-by-default=false` to `true` would instruct the compositor to
always map/display the application starting up.
Switching applications can also be done programmatically using gRPC
interface -- we have a simple application called agl-shell-activator (see -h)
that uses that under hood, assuming you know the application id.
The application id is taken from https://wayland.app/protocols/xdg-shell#xdg_toplevel:request:set_app_id
Fyi, this is not specific to flutter-auto, so if zenity doesn't show up
on flutter-auto it won't on other platforms either. If the section ini
doesn't work, let me know so I can take a look.
On Tue, Oct 31, 2023 at 06:06:09PM -0700, Joel Winarske wrote:
> Hi Marius,
>
> I am making a call to popen from flutter-auto to start zenity. What is the
> correct way to activate zenity so I see it above flutter-auto?
>
> Thanks,
> Joel
>
>
>
>
>
_._,_._,_
Links:
You receive all messages sent to this group.
View/Reply Online (#10833) |
Reply To Group
| Reply To Sender
|
Mute This Topic
| New Topic
Your Subscription |
Contact Group Owner |
Unsubscribe
[list-automotive-discussions82@xxxxxxxxxxx]
_._,_._,_