Skip to content

fix: force lockdir on windows to be user dir#371

Merged
dz0ny merged 1 commit intomainfrom
fix/lock-location
Sep 17, 2025
Merged

fix: force lockdir on windows to be user dir#371
dz0ny merged 1 commit intomainfrom
fix/lock-location

Conversation

@dz0ny
Copy link
Member

@dz0ny dz0ny commented Sep 17, 2025

@github-actions
Copy link

github-actions bot commented Sep 17, 2025

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/ParetoSecurity/agent/cmd 36.82% (-0.18%) 👎
Total 46.26%

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/ParetoSecurity/agent/cmd/trayicon.go 21.15% (-0.41%) 52 (+1) 11 41 (+1) 👎

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@dz0ny dz0ny requested a review from zupo September 17, 2025 09:06

lockFile, err := singleinstance.CreateLockFile("paretosecurity-tray.lock")
// Ensure lock directory exists
lockFile, err := singleinstance.CreateLockFile(filepath.Join(lockDir, ".paretosecurity-tray.lock"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm gonna assume this file is hidden from user, as I am afraid if it is not, someone will trash it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hidden yes. On windows, this defaults to home folder, which is actually not seen by the users.

@dz0ny dz0ny merged commit 7bc8043 into main Sep 17, 2025
43 of 44 checks passed
@dz0ny dz0ny deleted the fix/lock-location branch September 17, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants