Skip to content

Ship "syncthingw" Windows GUI binary (ref #8046, ref #8248) - #8760

Closed
calmh wants to merge 10 commits into
syncthing:mainfrom
calmh:syncthingw
Closed

calmh wants to merge 10 commits into
syncthing:mainfrom
calmh:syncthingw

Conversation

@calmh

@calmh calmh commented Jan 25, 2023

Copy link
Copy Markdown
Member

Add a Windows console-less (GUI) binary that starts Syncthing.

(Annoying build changes in progress.)

@AudriusButkevicius

AudriusButkevicius commented Jan 25, 2023 •

Copy link
Copy Markdown
Member

I'm fairly certain you can be console-less, and allocate to a console afterwards? (inverse of -hide-console etc)

I guess if you just run it from cmd, it would allocate a new window, but is that a big deal?

@AudriusButkevicius

AudriusButkevicius commented Jan 25, 2023 •

Copy link
Copy Markdown
Member

Effectively:

compile as gui
on startup get parent pid, get console window for parent pid.
if parent console null, allocconsole myself
if parent console not null, attachconsole to parents console handle
fix up stdin/stdout.

env var to ignore this whole thing maybe.

https://stackoverflow.com/a/52825978

@calmh

calmh commented Jan 25, 2023

Copy link
Copy Markdown
Member Author

@AudriusButkevicius I dare you to prove it

@AudriusButkevicius

Copy link
Copy Markdown
Member

Sure, I'll give it a go.

@Bill-Stewart

Copy link
Copy Markdown

My suggestion is to leave syncthing.exe as a console executable and deliver a separate syncthingw.exe executable that launches it in a hidden window. (Simpler is better.) Is the level of effort required to get a "seamless" experience for this one edge case really worth it? (Maybe, that's a judgment call.)

@AudriusButkevicius

Copy link
Copy Markdown
Member

It's not obvious to less tech savy users what to launch.
Launching w by accident and getting literally nothing is not very "seamless".

On the other hand, I can't find much resources about the current problem in order to fix it, so 🤷

@Bill-Stewart

Copy link
Copy Markdown

It's not obvious to less tech savy users what to launch.

This is a user education issue rather than a technical issue (in my opinion). This nuance needs to be documented, naturally. You could also put some preliminary text in the console that says something such as "On the Windows platform, you can start Syncthing using syncthingw to launch Syncthing in a hidden window."

I can't find much resources about the current problem in order to fix it

This is unsurprising, because the "solutions" tend to be complex and (in my opinion) probably not worth the effort to "fix" this one use case.

@st-review

Copy link
Copy Markdown

🤖 beep boop

I'm going to close this pull request as it has been idle for more than 90 days.

This is not a rejection, merely a removal from the list of active pull requests that is periodically reviewed by humans. The pull request can be reopened when there is new activity, and merged once any remaining issues are resolved.

To permanently exempt this PR from bot nagging, add the slow-pr label.

@st-review st-review closed this May 3, 2023
@calmh

calmh commented May 9, 2023

Copy link
Copy Markdown
Member Author

Imma offer this one for another round of consideration

@calmh calmh reopened this May 9, 2023
@calmh
calmh marked this pull request as ready for review May 9, 2023 06:29
calmh added 2 commits June 4, 2023 08:31
* main:
  gui: Remove HTML support in tooltips
  cmd/syncthing: Use correct binary when restarting monitor (syncthing#8919)
  build(deps): bump github.com/minio/sha256-simd from 1.0.0 to 1.0.1 (syncthing#8916)
  build: Increase concurrency, add "basic checks" gatekeeper
  gui, man, authors: Update docs, translations, and contributors
  gui, man, authors: Update docs, translations, and contributors
  lib/model: Set platform data for new folders w/ ignorePerms (ref syncthing#8883) (syncthing#8907)
  gui, man, authors: Update docs, translations, and contributors
  lib: replace `Readdir(-1)` with `os.ReadDir` (syncthing#8901)
  lib/api: Allow BindDN to exclude any username formatting (fixes syncthing#8899) (syncthing#8900)
  build: Attempt cross compilation for ~all targets, allow it to fail
  lib/fs: Fix root path handling for Windows (fixes syncthing#8778)
  all: Grand test refactor (fixes syncthing#8779, fixes syncthing#8799)
  all: Correct various typos (syncthing#8870)
@st-review

Copy link
Copy Markdown

🤖 beep boop

I'm going to close this pull request as it has been idle for more than 90 days.

This is not a rejection, merely a removal from the list of active pull requests that is periodically reviewed by humans. The pull request can be reopened when there is new activity, and merged once any remaining issues are resolved.

To permanently exempt this PR from bot nagging, add the slow-pr label.

@st-review st-review closed this Sep 4, 2023
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Sep 4, 2024
@syncthing syncthing locked and limited conversation to collaborators Sep 4, 2024
@calmh
calmh deleted the syncthingw branch May 26, 2025 13:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants