Skip to content

Commit

Permalink
Merge pull request #1305 from ipy/develop
Browse files Browse the repository at this point in the history
 build(version): bump version to 4.9.2-beta.2
  • Loading branch information
ipy authored Apr 21, 2020
2 parents b90c2b6 + 5d0e88f commit c7f1ef5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "splayer",
"productName": "splayer",
"homepage": "https://splayer.org",
"version": "4.9.2-beta.1",
"version": "4.9.2-beta.2",
"author": "tomasen <[email protected]>",
"description": "a media player",
"license": "GPL-3.0-or-later",
Expand Down
5 changes: 4 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ if (!process.mas && !app.requestSingleInstanceLock()) {
app.quit();
}

const customUserDataDir = app.commandLine.getSwitchValue('user-data-dir');
let customUserDataDir = app.commandLine.getSwitchValue('user-data-dir');
if (customUserDataDir) {
if (!path.isAbsolute(customUserDataDir)) {
customUserDataDir = path.join(path.dirname(process.argv0), customUserDataDir);
}
mkdirp.sync(customUserDataDir);
app.setPath('userData', customUserDataDir);
}
Expand Down

0 comments on commit c7f1ef5

Please sign in to comment.