Skip to content

[Bug] App does not remember last window position and size on close #1135

@rozsazoltan

Description

@rozsazoltan

Search before asking

  • I searched in the issues and found nothing similar.

Pake version

3.8.6

Rust version

rustc 1.92.0 (ded5c06cf 2025-12-08)

Package Manager

npm

System version

Windows 11

Node.js version

v22.22.0

Build Command

pake https://www.facebook.com/messages --name messenger-next --icon messenger.ico --inject messenger.css

Minimal reproduce step

I open the application, move it on the desktop, and resize it, then close it. When I reopen it, I expect it to appear in the same position and size as when I closed it, but this does not happen.

What did you expect to see?

It remembers the position and sizes.

What did you see instead?

It does not remember either the position or the size.

Anything else?

It seems that this behavior comes from Tauri and is not optional - it is included in every Pake app - yet it does not work. I haven't found any relevant tauri-window-state-plugin issues that would suggest a Tauri bug, but it's possible that it might turn out to be one after all.

I also created an executable for messenger.com with Pake in March 2025, presumably using this command:

pake https://messenger.com --name messenger --icon messenger.ico

Back then, it worked smoothly. Now, on April 15, 2026, that domain is being discontinued, so I'm moving the executable to facebook.com/messages. Unfortunately, this also requires some cosmetic changes to fix distracting elements and a few bugs. That's why messenger.css is needed. It seems that without the CSS, the issue still persists:

pake https://www.facebook.com/messages --name messenger-next --icon messenger.ico

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions