Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support xdg-activation #1286

Open
bbb651 opened this issue Feb 12, 2025 · 0 comments
Open

[FEATURE] Support xdg-activation #1286

bbb651 opened this issue Feb 12, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@bbb651
Copy link
Contributor

bbb651 commented Feb 12, 2025

Description of the requested feature

When eww rans external commands, they aren't given a valid XDG_ACTIVATION_TOKEN (usually they will get an invalid inherited from eww because it doesn't explicitly clear it), potentially leading to focus not switching if a new window is created, e.g. with niri's strict-new-window-focus-policy.

I think the way this to do in gtk is using AppInfo.create_from_commandline then AppInfo.launch which will handle activation automatically, I'm not sure what implications this on launch speed and behavior, alternatively we can try to access xdg_activation_v1 ourselves with WaylandDisplay.

Proposed configuration syntax

None, should be applied automatically to all commands that are executed.

Additional context

No response

@bbb651 bbb651 added the enhancement New feature or request label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant