fix(startup-apps): create autostart directory before creating startup entries

Closes #1197
This commit is contained in:
Michael Aaron Murphy 2025-06-11 12:00:04 +02:00
parent cdf431c510
commit e6e49fbddc
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -225,6 +225,9 @@ impl Page {
let directory_to_target =
directories.get(0).expect("Always at least one directory");
_ = std::fs::create_dir_all(directory_to_target.as_path());
if let Ok(exists) = std::fs::exists(directory_to_target.join(file_name.clone())) {
if !exists {
// when adding an application, we want to symlink to be more user-friendly