Skip to content
Closed
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
8 changes: 5 additions & 3 deletions src/e-app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const appPath = __dirname.replace('app.asar/', '');

const autostartLocation = path.join(os.homedir(), '.config/autostart');
const autostartDesktopFilename = 'tuxedo-control-center-tray.desktop';
const tccConfigDir = path.join(os.homedir(), '.tcc');
const homeDir = os.homedir()
const xdgConfigDir = path.join(homeDir, '.config')
const tccConfigDir = process.env.XDG_CONFIG_HOME || (fs.existsSync ? xdgConfigDir : homeDir);
const tccStandardConfigFile = path.join(tccConfigDir, 'user.conf');
const availableLanguages = [
'en',
Expand Down Expand Up @@ -160,7 +162,7 @@ async function initTray() {
tray.state.isAutostartTrayInstalled = isAutostartTrayInstalled();
tray.create();
};

tray.events.fnLockClick = (status: boolean) => {
tray.state.fnLockStatus = !status
tccDBus.setFnLockStatus(tray.state.fnLockStatus);
Expand Down Expand Up @@ -1137,7 +1139,7 @@ const aquarisHandlers = new Map<string, (...args: any[]) => any>()
aquarisStateExpected.pumpOn = false;
await updateDeviceState(aquaris, aquarisStateCurrent, aquarisStateExpected);
})

.set(ClientAPI.prototype.saveState.name, async () => {
if (await aquarisConnectedDemo()) return;
await userConfig.set('aquarisSaveState', JSON.stringify(aquarisStateCurrent));
Expand Down