From 935ba0b3ed09cdbd2e4e3e808c2df4e6a41e0706 Mon Sep 17 00:00:00 2001 From: Jan Hovancik Date: Fri, 27 Dec 2024 09:56:39 +0100 Subject: [PATCH] Show correct file location when from Windows Store --- CHANGELOG.md | 1 + app/main.js | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1aaf5b01..640d9a1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/main.js b/app/main.js index 7592545c..46868220 100644 --- a/app/main.js +++ b/app/main.js @@ -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) })