[appimage] fix: not able to launch AppImage files installed inside folders named with spaces

This commit is contained in:
Vinicius Moreira
2020-11-30 18:52:55 -03:00
parent ef28a18d02
commit 24d14e41bc
4 changed files with 17 additions and 6 deletions

View File

@@ -121,7 +121,7 @@ class SymlinksVerifier(Thread):
@staticmethod
def create_symlink(app: AppImage, file_path: str, logger: logging.Logger, watcher: ProcessWatcher = None):
logger.info("Creating a symlink for '{}'".format(app.name))
possible_names = (app.name.lower(), '{}-appimage'.format(app.name.lower()))
possible_names = (app.get_clean_name(), '{}-appimage'.format(app.get_clean_name()), app.name.lower(), '{}-appimage'.format(app.name.lower()))
if os.path.exists(SYMLINKS_DIR) and not os.path.isdir(SYMLINKS_DIR):
logger.warning("'{}' is not a directory. It will not be possible to create a symlink for '{}'".format(SYMLINKS_DIR, app.name))