Skip to content

Commit e6e49fb

Browse files
committed
fix(startup-apps): create autostart directory before creating startup entries
Closes #1197
1 parent cdf431c commit e6e49fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cosmic-settings/src/pages/applications/startup_apps.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ impl Page {
225225

226226
let directory_to_target =
227227
directories.get(0).expect("Always at least one directory");
228+
229+
_ = std::fs::create_dir_all(directory_to_target.as_path());
230+
228231
if let Ok(exists) = std::fs::exists(directory_to_target.join(file_name.clone())) {
229232
if !exists {
230233
// when adding an application, we want to symlink to be more user-friendly

0 commit comments

Comments
 (0)