Skip to content

Commit

Permalink
fix: actually support custom user dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjixWasTaken committed Sep 24, 2024
1 parent 33e040c commit 56103e5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ function restartApp() {
}

function addCommandLineSwitchesBeforeConfigLoad() {
// Custom user data directory
if (app.commandLine.hasSwitch('customUserDir')) {
app.setPath('userData', app.commandLine.getSwitchValue('customUserDir'));
}

app.commandLine.appendSwitch('try-supported-channel-layouts');

// Disabled features
Expand All @@ -100,6 +95,10 @@ function addCommandLineSwitchesBeforeConfigLoad() {
}

function addCommandLineSwitchesAfterConfigLoad() {
if (config.customUserDir) {
app.setPath('userData', config.customUserDir);
}

// Wayland
if (process.env.XDG_SESSION_TYPE === 'wayland') {
console.info('Running under Wayland, switching to PipeWire...');
Expand Down

0 comments on commit 56103e5

Please sign in to comment.