Skip to content

Commit 2c4fa17

Browse files
committed
Create the wallpapers directory if not exists
1 parent 085849f commit 2c4fa17

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {DialogManager} from './utils/DialogManager.js';
1919
import {ThemeManager} from './services/theme-manager.js';
2020
import {ThemeExporter} from './services/ThemeExporter.js';
2121
import {BlueprintService} from './services/BlueprintService.js';
22+
import {ensureDirectoryExists} from './utils/file-utils.js';
2223

2324
Adw.init();
2425

@@ -39,6 +40,13 @@ const AetherApplication = GObject.registerClass(
3940
this.themeManager = themeManager;
4041
this._wallpaperPath = null;
4142

43+
// Ensure ~/Wallpapers directory exists
44+
const wallpapersDir = GLib.build_filenamev([
45+
GLib.get_home_dir(),
46+
'Wallpapers',
47+
]);
48+
ensureDirectoryExists(wallpapersDir);
49+
4250
this.add_main_option(
4351
'wallpaper',
4452
'w'.charCodeAt(0),

0 commit comments

Comments
 (0)