Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Desktop: Disable initial Sentry request when crash auto-upload is dis…
…abled
- Loading branch information
Showing
10 changed files
with
101 additions
and
49 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
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
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,16 @@ | ||
import { homedir } from 'os'; | ||
import { toSystemSlashes } from './path-utils'; | ||
|
||
export default (profileFromArgs: string, appName: string) => { | ||
let output = ''; | ||
|
||
if (profileFromArgs) { | ||
output = profileFromArgs; | ||
} else if (process && process.env && process.env.PORTABLE_EXECUTABLE_DIR) { | ||
output = `${process.env.PORTABLE_EXECUTABLE_DIR}/JoplinProfile`; | ||
} else { | ||
output = `${homedir()}/.config/${appName}`; | ||
} | ||
|
||
return toSystemSlashes(output, 'linux'); | ||
}; |
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
It looks like a test related to this line is now failing:
It seems that the issue is caused by a partial mock of
bridge.ts
that's used for the test.