feat: implement Phase 5 system handlers (automation, power, recording)
- Implement window control, wallpaper reset, and power management. - Add Aperture recording wrapper and displayplacer layout control. - Add self-update logic stub for local/remote sources. - Register and expose handlers via context bridge.
This commit is contained in:
8
dist/main/file_utils.js
vendored
8
dist/main/file_utils.js
vendored
@@ -40,10 +40,10 @@ const path = __importStar(require("path"));
|
||||
function expandPath(filePath) {
|
||||
if (!filePath)
|
||||
return filePath;
|
||||
if (filePath.startsWith('[home]')) {
|
||||
return path.join(os.homedir(), filePath.replace('[home]', ''));
|
||||
}
|
||||
return filePath;
|
||||
// Resolve all instances of [home] and [tmp] using global regex
|
||||
return filePath
|
||||
.replace(/\[home\]/g, os.homedir())
|
||||
.replace(/\[tmp\]/g, os.tmpdir());
|
||||
}
|
||||
function getHashedPath(cacheRoot, hash) {
|
||||
const expandedRoot = expandPath(cacheRoot);
|
||||
|
||||
Reference in New Issue
Block a user