Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/common/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type {
ConfigSchema,
GlobalConfig
} from './config.types';
import { getConfigPath } from './directories';
import { getConfigPath, getDataPath, getStaticPath } from './directories';
import { wLogger } from './logger';
import { isRealNumber } from './manipulation';

Expand Down Expand Up @@ -65,7 +65,10 @@ const defaultSchema: ConfigSchema = {
},
staticFolderPath: {
binding: 'STATIC_FOLDER_PATH',
default: './static'
default:
process.platform === 'linux'
? path.join(getDataPath(), 'static')
: './static'
Comment thread
cyperdark marked this conversation as resolved.
},
enableIngameOverlay: {
binding: 'ENABLE_INGAME_OVERLAY',
Expand Down Expand Up @@ -492,5 +495,5 @@ export async function configInitialization() {
await ConfigManager.initialize(configPath);

// Create user-specified static folder
await fs.mkdir(config.staticFolderPath, { recursive: true }).catch(null);
await fs.mkdir(getStaticPath(), { recursive: true }).catch(null);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

who tf asked your opinion???
why does github trigger automatic copilot review on my behalf

}