Skip to content

Keep application running in service mode - #257

Open
City-busz wants to merge 2 commits into
FineFindus:mainfrom
City-busz:hold-service
Open

City-busz wants to merge 2 commits into
FineFindus:mainfrom
City-busz:hold-service

Conversation

@City-busz

@City-busz City-busz commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Keep the application running when launched with --gapplication-service by holding an application reference for its lifetime.

Without an application hold, GApplication may exit after its initial activation timeout if no activation message is received. This prevents the background service from terminating before global shortcuts can be used.

Also add a preference to enable or disable background operation.

Keep the application running when launched with
--gapplication-service by holding an application reference for
its lifetime.

Without an application hold, GApplication may exit after its
initial activation timeout if no activation message is received.
This prevents the background service from terminating before
global shortcuts can be used.
@City-busz
City-busz force-pushed the hold-service branch 3 times, most recently from 494b450 to 217bc27 Compare November 26, 2026 16:43
Add a preference to enable or disable background operation.

When enabled, the application requests background access, registers
global shortcuts, and hides the window instead of closing it.

When disabled, background access and global shortcuts are not
configured, and closing the window exits the application.

Also keep the application running in service mode only when
background operation is enabled.
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.

1 participant