mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-24 23:55:52 +03:00
[PR #427] fix(linux): correct single-instance detection order #395
Labels
No labels
android
bug
documentation
enhancement
good first issue
help wanted
linux
pull-request
reverse-engineering
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librepods#395
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/kavishdevar/librepods/pull/427
Author: @bhdai
Created: 1/14/2026
Status: 🔄 Open
Base:
main← Head:fix/single-instance-detection📝 Commits (2)
97cb02cfix(linux): correct single-instance detection orderb2043c9fix: ai suggestion📊 Changes
1 file changed (+3 additions, -11 deletions)
View changed files
📝
linux/main.cpp(+3 -11)📄 Description
problem
When launching the app while an instance is already running, a new instance starts instead of bringing the existing window to focus. This results in duplicate system tray icons.
The socket cleanup was running BEFORE the connection check,causing every new launch to delete the socket before attempting to detect an existing instance.
solution
Reorder the logic in
main():Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.