Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 6d26ba8

Browse files
authored
Fix device id path (#816)
* fix session path
1 parent 14049e2 commit 6d26ba8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

electron/libs/auth.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mkdirp } from "mkdirp";
22
import path from "path";
33
import fs from "fs";
4-
import { getPkgxPath } from "./pkgx-dir";
4+
import { getGuiPath } from "./pkgx-dir";
55
import { app } from "electron";
66
import log from "./logger";
77
import axios from "axios";
@@ -12,8 +12,8 @@ import { InitWatcher } from "./initialize";
1212
import { baseURL } from "./v1-client";
1313
import { isDev } from "./auto-updater";
1414

15-
const sessionFilePath = path.join(getPkgxPath(), isDev() ? "dev.dat" : "tmp.dat");
16-
const sessionFolder = getPkgxPath();
15+
const sessionFilePath = path.join(getGuiPath(), isDev() ? "dev.dat" : "tmp.dat");
16+
const sessionFolder = getGuiPath();
1717

1818
export interface Session {
1919
device_id?: string;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ossapp",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"private": true,
55
"description": "The Open Source App Store",
66
"author": "pkgx inc. <hello@pkgx.dev>",

0 commit comments

Comments
 (0)