create .local/bin folder for AppImage if not existent

This commit is contained in:
Dominik Demuth 2023-04-19 18:33:11 +02:00
parent 59625c1581
commit efd5b34b13
2 changed files with 6 additions and 17741 deletions

View File

@ -19,7 +19,12 @@ def make_starter(app_file: str | None):
def make_starter_appimage(app_file: Path):
new_path = Path.home() / '.local' / 'bin' / app_file.name
new_path = Path.home() / '.local' / 'bin'
if not new_path.exists():
new_path.mkdir(parents=True)
new_path /= app_file.name
if app_file != new_path:
app_file.rename(new_path)

File diff suppressed because it is too large Load Diff