@@ -327,20 +327,24 @@ def parse_version_info(version_path):
327
327
# Recursively create AppDir /usr folder
328
328
os .makedirs (os .path .join (app_dir_path , "usr" ), exist_ok = True )
329
329
330
- # Install program icon
331
- icon_256_png = os .path .join (PATH , "xdg" , "icon" , "256" , "openshot-qt.png" )
332
- shutil .copyfile (icon_256_png , os .path .join (app_dir_path , "openshot-qt.png" ))
330
+ # Install program icon (as a 128x128 PNG & SVG)
331
+ icon_svg = os .path .join (PATH , "xdg" , "openshot-qt.svg" )
332
+ icon_128_png = os .path .join (PATH , "xdg" , "icon" , "128" , "openshot-qt.png" )
333
+ shutil .copyfile (icon_128_png , os .path .join (app_dir_path , "openshot-qt.png" ))
334
+ shutil .copyfile (icon_svg , os .path .join (app_dir_path , "openshot-qt.svg" ))
333
335
334
336
# Install .DirIcon AppImage icon
335
337
# See: https://docs.appimage.org/reference/appdir.html
336
338
# SVG icon not supported on Chrome OS (with AppImage desktop integration)
337
339
# PNG is assumed with desktop integration
338
- shutil .copyfile (icon_256_png , os .path .join (app_dir_path , ".DirIcon" ))
340
+ shutil .copyfile (icon_128_png , os .path .join (app_dir_path , ".DirIcon" ))
339
341
340
342
dest = os .path .join (app_dir_path , "usr" , "share" , "pixmaps" )
341
343
os .makedirs (dest , exist_ok = True )
342
344
343
- shutil .copyfile (icon_256_png , os .path .join (dest , "openshot-qt.png" ))
345
+ # Copy pixmaps (as a 128x128 PNG & SVG)
346
+ shutil .copyfile (icon_128_png , os .path .join (dest , "openshot-qt.png" ))
347
+ shutil .copyfile (icon_svg , os .path .join (dest , "openshot-qt.svg" ))
344
348
345
349
# Install MIME handler
346
350
dest = os .path .join (app_dir_path , "usr" , "share" , "mime" , "packages" )
0 commit comments