Skip to content

BUG: Backend Serve and Sync Processes Keep Running After Closing PictoPy #870

@rahulharpal1603

Description

@rahulharpal1603

Discussed in #721

Originally posted by rohan-pandeyy December 12, 2025
Hi @rahulharpal1603, I’m opening this discussion to confirm whether you agree with the points raised here, since this bug directly affects PictoPy’s production behavior. Once approved, this can be converted into an issue.

Current Behavior

I recently noticed, in the production build of PictoPy:

  • When the app launches, the internal backend server and the sync process start automatically.
    image

  • But when the user closes PictoPy, both processes continue running in the background.
    image

  • These processes keep consuming memory/CPU even though the user believes the app has fully exited. (And the consumption only increases as more folders are added to the db)

I went through some other OS/Non OS applications, this shouldn't be an intentional background-service behavior.

[!IMPORTANT]
Closing the app = everything stops, there shouldn't be any hidden background daemons unless explicitly enabled...🤔

Even though I agree, having the server always running means the app opens and loads all images faster, if accidentally closed, or the user keeps opening and closing the app, but this should be a user choice whether they want "on clicking cross, shut down backend server and sync engine" or "keep the bg processes running".

What I'm proposing:

There should be an explicit user-facing toggle for "run in background" or "minimize to tray" along with a proper tray integration, in settings page, if you side with the "server always running means the app opens and loads all images faster" part...
Otherwise the background processes should automatically end in case you think a minimize to tray toggle is not required for PictoPy.

Kindly let me know if any other clarification from my side is required. :)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions