-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #300 from HASEL-UZH/feature/295-issues-with-experi…
…ence-sampling Feature/295 issues with experience sampling
- Loading branch information
Showing
20 changed files
with
565 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Troubleshooting PersonalAnalytics | ||
|
||
### macOS: Reinstalling PersonalAnalytics from Scratch | ||
> If you are experiencing issues with PersonalAnalytics on macOS and want to reinstall the app, please follow the steps below: | ||
1. Quit PA and check that it is not running with: | ||
``` | ||
ps aux | grep -i personal | ||
``` | ||
|
||
2. Remove permissions for PA in System Settings: | ||
``` | ||
open "x-apple.systempreferences:com.apple.preference.security” | ||
``` | ||
|
||
Check for entries in “Accessibility” and “Screen & System Audio Recording”, and delete these entries using the “-“ symbol at the bottom of the list. | ||
|
||
> Note: Checking for these permissions needs to be done *BEFORE* deleting the PA app, as permissions for deleted apps are kept, but not shown in this list if the app is deleted. | ||
3. Delete PA and its settings | ||
|
||
- Copy the database if you want to keep it | ||
``` | ||
open ~/Library/Application\ Support/personal-analytics | ||
``` | ||
- Delete PA | ||
``` | ||
rm -rf /Applications/PersonalAnalytics.app | ||
``` | ||
- Delete Settings | ||
``` | ||
rm -rf ~/Library/Application\ Support/personal-analytics | ||
``` | ||
|
||
4. Make sure PA and settings are deleted | ||
``` | ||
ls -lah /Applications | grep -i personal | ||
ls -lah ~/Library/Application\ Support | grep -i personal | ||
``` | ||
|
||
5. Done - you can freshly install PersonalAnalytics now! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import logger from 'electron-log/main'; | ||
import { LogFunctions } from 'electron-log'; | ||
import { LOG_FILE_NAME, LOG_LEVEL } from './logger.config'; | ||
|
||
export const getMainLogger = (loggerName: string): LogFunctions => { | ||
logger.transports.file.fileName = `${LOG_FILE_NAME.BACKGROUND}.log`; | ||
logger.transports.file.maxSize = 15 * 1024 * 1024; | ||
logger.transports.file.level = LOG_LEVEL.FILE; | ||
logger.transports.console.level = LOG_LEVEL.CONSOLE; | ||
return logger.scope(loggerName); | ||
}; | ||
|
||
export default getMainLogger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/electron/electron/main/services/ExperienceSamplingService.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/electron/electron/main/services/trackers/WindowActivityTrackerService.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.