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:
Ensures there will be no double autostart entries from the old method
Ensures that on disabling autostart, old startup entries will also be remove
(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:startup
22,9s p. average for registry
EDIT: 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.
## 📋 Pull Request Information
**Original PR:** https://github.com/LGUG2Z/komorebi/pull/1469
**Author:** [@SammCheese](https://github.com/SammCheese)
**Created:** 5/30/2025
**Status:** 🔄 Open
**Base:** `master` ← **Head:** `registry-autostart`
---
### 📝 Commits (4)
- [`284a6bb`](https://github.com/LGUG2Z/komorebi/commit/284a6bbedef16b58cae01070e736bb041e393c48) feat(komorebic): use the Registry to autostart komorebi
- [`f05120e`](https://github.com/LGUG2Z/komorebi/commit/f05120e5648a32c5f30afbacdfeabc8e801e5099) fix(komorebic): use println instead of print for autostart message
- [`9043d51`](https://github.com/LGUG2Z/komorebi/commit/9043d515dd87c58a370371da97708e94111f6be0) feat(komorebic): add --registry flag to autostart
- [`dfdfd7e`](https://github.com/LGUG2Z/komorebi/commit/dfdfd7ef25de641da15232ae5782591ddd7d564d) Merge branch 'master' into registry-autostart
### 📊 Changes
**3 files changed** (+48 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `Cargo.lock` (+1 -0)
📝 `komorebic/Cargo.toml` (+1 -0)
📝 `komorebic/src/main.rs` (+46 -2)
</details>
### 📄 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:
- Ensures there will be no double autostart entries from the old method
- Ensures that on disabling autostart, old startup entries will also be remove
(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:startup`
22,9s p. average for `registry`
EDIT: 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.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.