fix(startup-apps): create autostart directory before creating startup entries
Closes #1197
This commit is contained in:
parent
cdf431c510
commit
e6e49fbddc
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue