Skip to content

Support globalshortcuts - #226

Open
KoljaFrahm wants to merge 2 commits into
flatpak:mainfrom
KoljaFrahm:support_globalHotkey_kolja
Open

Support globalshortcuts#226
KoljaFrahm wants to merge 2 commits into
flatpak:mainfrom
KoljaFrahm:support_globalHotkey_kolja

Conversation

@KoljaFrahm

Copy link
Copy Markdown

Sorry for opening a third PR!

Replaces #153 and #223

I discussed with @sithlord48 that I will just open a PR because I changed so much.
This is again based upon #153 but I fixed it so the leftover remains from the inputcapture files are not in it anymore and it works.

You can test it within portal-test-gtk3.

Downstream use: deskflow/deskflow#9858

@KoljaFrahm
KoljaFrahm force-pushed the support_globalHotkey_kolja branch from fafc928 to e91c85f Compare June 29, 2026 09:47
@KoljaFrahm
KoljaFrahm force-pushed the support_globalHotkey_kolja branch 4 times, most recently from 8598060 to 6d2cbb9 Compare July 8, 2026 15:56
@KoljaFrahm

Copy link
Copy Markdown
Author

I now also added a test for the shortcut_changed signal

@bbhtt

bbhtt commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

I saw your ping at me yesterday but someone else should review this. I am not familiar with the portal implementation. If something needs to merged after reviews etc. let me know.

@KoljaFrahm

Copy link
Copy Markdown
Author

Can then someone else please review this PR?
@jadahl @GeorgesStavracas @TingPing @smcv

Comment thread libportal/globalshortcuts.h Outdated
@KoljaFrahm
KoljaFrahm force-pushed the support_globalHotkey_kolja branch from 6d2cbb9 to bb3493a Compare August 4, 2026 20:45
Comment thread libportal/globalshortcuts.c Outdated
Comment thread libportal/globalshortcuts.c
Comment thread libportal/globalshortcuts.c
Comment thread libportal/globalshortcuts.h Outdated
Comment thread libportal/globalshortcuts.h Outdated
@KoljaFrahm
KoljaFrahm force-pushed the support_globalHotkey_kolja branch from bb3493a to 1b65ee8 Compare August 6, 2026 09:12
@KoljaFrahm
KoljaFrahm requested a review from jadahl August 10, 2026 08:46

@jadahl jadahl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm now, just a minor nit

Comment thread libportal/globalshortcuts.c Outdated
@KoljaFrahm
KoljaFrahm force-pushed the support_globalHotkey_kolja branch 2 times, most recently from 870e504 to 4b2951f Compare August 21, 2026 16:33
@KoljaFrahm

Copy link
Copy Markdown
Author

I squashed now the review changes into the original commit.
@bbhtt This has now been reviewed, can you merge and release a new libportal version?

@bbhtt

bbhtt commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

I seem to have now lost permissions to this repo, not sure who changed them but I wasn't notified...

@KoljaFrahm

Copy link
Copy Markdown
Author

@TingPing can you maybe merge and release a new version? I saw you merged recently

@bbhtt

bbhtt commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

I got mine back after some email back and forth. If Patrick or no one else is available I can do it now.

Comment thread libportal/globalshortcuts.c
Comment thread libportal/globalshortcuts.c Outdated
g_return_if_fail (G_IS_TASK (call->task));

g_variant_get (parameters, "(u@a{sv})", &response, &ret);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this missing the handling of response != 0 like bind_shortcuts_done?

@bbhtt bbhtt Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually it's probably redundant in the other way since call_dispose already does it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's redundant. Removed it in bind_shortcuts and session_created

Comment thread libportal/globalshortcuts.h
@KoljaFrahm
KoljaFrahm force-pushed the support_globalHotkey_kolja branch 2 times, most recently from 1be9e02 to 4b6f87a Compare August 25, 2026 07:09
Co-Authored-By: dcz <gilaac.dcz@porcupinefactory.org>
@KoljaFrahm
KoljaFrahm force-pushed the support_globalHotkey_kolja branch from 4b6f87a to afd95f5 Compare August 25, 2026 21:50
@KoljaFrahm
KoljaFrahm requested a review from bbhtt August 26, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants