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

Global shortcuts portal doesn't support passing xdg-activation token #1678

Open
ogarai opened this issue Mar 20, 2025 · 1 comment
Open

Global shortcuts portal doesn't support passing xdg-activation token #1678

ogarai opened this issue Mar 20, 2025 · 1 comment
Labels

Comments

@ogarai
Copy link

ogarai commented Mar 20, 2025

Operating System

Arch Linux

XDG Desktop Portal version

Other

XDG Desktop Portal version (Other)

1.20.0

Desktop Environment

GNOME

Desktop Environment (Other)

No response

Expected Behavior

There should be a way for apps to receive the activation-token from the global shortcuts portal.

Current Behavior

The Global shortcuts portal added in #711 is yet another way to launch apps.

When launching apps in wayland an xdg-activation token needs to be explicitly set to be able to bring the app window to the foreground.

But there is no support for passing the activation token in the Activated signal for global shortcuts similar to the ActionInvoked signal in the notifications portal.

So invoking an already running app using global shortcuts may not bring its window forward.

cc: @nickdiego

Steps to Reproduce

N/A

Anything else we should know?

No response

@ogarai ogarai added the bug label Mar 20, 2025
@swick
Copy link
Collaborator

swick commented Mar 21, 2025

The global shortcuts system can't be used to spawn applications, only to send signals to them, but I do see the value of handing over an activation token. Should be possible to add that to the options vardict in the Activated/Deactivated signals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants