Skip to content

Commit

Permalink
Merge pull request #1537 from hovancik/log-file
Browse files Browse the repository at this point in the history
Show correct file location
  • Loading branch information
hovancik authored Dec 28, 2024
2 parents 009173d + 935ba0b commit 10c5b99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- Linux DND detection
- debug info when from Windows Store

## [1.17.1] - 2024-12-25
### Fixed
Expand Down
8 changes: 6 additions & 2 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1496,8 +1496,12 @@ ipcMain.on('show-debug', function (event) {
const breaknumber = breakPlanner.breakNumber
const postponesnumber = breakPlanner.postponesNumber
const doNotDisturb = breakPlanner.dndManager.isOnDnd
const settingsFile = settings.path
const logsFile = log.transports.file.getFile().path
let settingsFile = settings.path
let logsFile = log.transports.file.getFile().path
if (process.windowsStore) {
settingsFile = settingsFile.replace('Roaming', 'Local\\Packages\\33881JanHovancik.stretchly_24fg4m0zq65je\\LocalCache\\Roaming')
logsFile = logsFile.replace('Roaming', 'Local\\Packages\\33881JanHovancik.stretchly_24fg4m0zq65je\\LocalCache\\Roaming')
}
event.sender.send('debugInfo', reference, timeleft,
breaknumber, postponesnumber, settingsFile, logsFile, doNotDisturb)
})
Expand Down

0 comments on commit 10c5b99

Please sign in to comment.