pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
219 stars 42 forks source link

Feat/alt tab cycle #225

Open wiiznokes opened 5 days ago

wiiznokes commented 5 days ago

based on #219

impl https://github.com/pop-os/cosmic-launcher/issues/135

With this PR, the service is not intended to be restarted everytime the cosmic-launcher is shown, because the toplevel plugin needs to keep track of some states.

So i just added a field in the plugin config:

#[serde(default)]
pub long_lived: bool,

For plugins that need to always running.

And this variant Frontend -> Service/Plugin

/// The frontend was closed and the service should release resources
/// and prepare for the next query
Close,

I believe the service was written with this usecase in mind, so there isn't much change.

Also, i had to deactivate the sort when the query is empty.