Updated: Corrected Kumo

Kumo was not checking for the applications folder in home directory,
Corrected that issue.

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-12-21 22:10:25 +09:00
parent af18b4e658
commit ff17374359
1 changed files with 5 additions and 0 deletions

View File

@ -123,6 +123,11 @@ Icon={get_icon}
Categories={selected_category_key}
Type=Application
"""
# Make sure path exists first
folder = os.path.dirname(write_path)
if not os.path.exists(folder):
os.makedirs(folder)
# Then write the file
with open(write_path, 'w') as app:
app.write(app_content)