mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1469] Use Registry to speed Autostart up #1414
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1469
Author: @SammCheese
Created: 5/30/2025
Status: 🔄 Open
Base:
master← Head:registry-autostart📝 Commits (4)
284a6bbfeat(komorebic): use the Registry to autostart komorebif05120efix(komorebic): use println instead of print for autostart message9043d51feat(komorebic): add --registry flag to autostartdfdfd7eMerge branch 'master' into registry-autostart📊 Changes
3 files changed (+48 additions, -2 deletions)
View changed files
📝
Cargo.lock(+1 -0)📝
komorebic/Cargo.toml(+1 -0)📝
komorebic/src/main.rs(+46 -2)📄 Description
I've noticed that the startup can sometimes be a bit slow.
So i have decided to try to speed the autostart up a bit, by adding the startup entry in the Registry instead of using shell:startup.
The PR also:
(old startup entries referring to the shell:startup method)
The Tests show an average startup improvement time of 6s across 3 runs each, despite strong variations and inconsistencies due to the nature of windows' boot process.
29,3s p. average for
shell:startup22,9s p. average for
registryEDIT: the registry autostart is now locked behind the --registry flag.
By default, shell:startup is used and will (when enabled) also attempt to remove the komorebi autostart registry entry if it exists.
When the --registry flag is used, it will first try to remove the shell:startup shortcut (if it exists) and then create the appropriate registry startup entry.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.