mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #598] [MERGED] feat(cli/autostart): add --no-console to autostart without a console window
#1009
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/598
Author: @amrbashir
Created: 11/26/2023
Status: ✅ Merged
Merged: 12/3/2023
Merged by: @LGUG2Z
Base:
master← Head:feat/auto-start-without-console📝 Commits (8)
08494b4feat(cli): autostart without a console window18f0a6eRevert "feat(cli): autostart without a console window"e97aaa3feat(cli): autostart without a console windowa43746eadd behind--no-consoleflage1e511freference the new binary in wixd237553Merge branch 'master' into feat/auto-start-without-console955131fremove no-consolef4a9b71fix typo📊 Changes
7 files changed (+56 additions, -4 deletions)
View changed files
📝
.goreleaser.yml(+9 -0)📝
Cargo.lock(+4 -0)📝
Cargo.toml(+1 -0)➕
komorebic-no-console/Cargo.toml(+15 -0)➕
komorebic-no-console/src/main.rs(+19 -0)📝
komorebic/src/main.rs(+3 -4)📝
wix/main.wxs(+5 -0)📄 Description
So this PR actually contains two approaches for this in
08494b4ande97aaa3The first one, moves
komorebiclogic into alib.rsfile and calls it frommain.rs(normal behavior) and then there is a second binarykomorebic-no-consolebinary that uses#![windows_subsystem = "windows"]which tells the linker to not attach a console window to this binary.The second one, creates a second binary
komorebic-no-consolebinary that uses#![windows_subsystem = "windows"]which tells the linker to not attach a console window to this binary and its only job is to run and pass its args tokomorebic.Both have benefits and drawbacks, but the main benefit of the second approach (which I recommend anyways) is that it creates a smaller binary and thus doesn't bloat the final installer.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.