Skip to content

Commit 935ba0b

Browse files
committed
Show correct file location
when from Windows Store
1 parent 2b35f6e commit 935ba0b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [Unreleased]
88
### Fixed
99
- Linux DND detection
10+
- debug info when from Windows Store
1011

1112
## [1.17.1] - 2024-12-25
1213
### Fixed

app/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,8 +1496,12 @@ ipcMain.on('show-debug', function (event) {
14961496
const breaknumber = breakPlanner.breakNumber
14971497
const postponesnumber = breakPlanner.postponesNumber
14981498
const doNotDisturb = breakPlanner.dndManager.isOnDnd
1499-
const settingsFile = settings.path
1500-
const logsFile = log.transports.file.getFile().path
1499+
let settingsFile = settings.path
1500+
let logsFile = log.transports.file.getFile().path
1501+
if (process.windowsStore) {
1502+
settingsFile = settingsFile.replace('Roaming', 'Local\\Packages\\33881JanHovancik.stretchly_24fg4m0zq65je\\LocalCache\\Roaming')
1503+
logsFile = logsFile.replace('Roaming', 'Local\\Packages\\33881JanHovancik.stretchly_24fg4m0zq65je\\LocalCache\\Roaming')
1504+
}
15011505
event.sender.send('debugInfo', reference, timeleft,
15021506
breaknumber, postponesnumber, settingsFile, logsFile, doNotDisturb)
15031507
})

0 commit comments

Comments
 (0)