|
|
|
@ -109,6 +109,11 @@ if (!fs.existsSync(startFile)) {
|
|
|
|
|
|
|
|
|
|
// Create autostartup file
|
|
|
|
|
const autostartupFile = path.join(app.getPath('home'), '.config', 'autostart', 'wallify.desktop');
|
|
|
|
|
const autostartupDir = path.dirname(autostartupFile);
|
|
|
|
|
if (!fs.existsSync(autostartupDir)) {
|
|
|
|
|
console.log('Creating autostartup directory...');
|
|
|
|
|
fs.mkdirSync(autostartupDir, { recursive: true });
|
|
|
|
|
}
|
|
|
|
|
if (!fs.existsSync(autostartupFile)) {
|
|
|
|
|
console.log('Creating autostartup file...');
|
|
|
|
|
const user = require('os').userInfo().username;
|
|
|
|
|