Skip to content

Commit fc20838

Browse files
committed
Another experimental AppImage icon change... for better support of AppImage desktopintegration
1 parent 1a5550e commit fc20838

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

installer/build-server.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -328,19 +328,19 @@ def parse_version_info(version_path):
328328
os.makedirs(os.path.join(app_dir_path, "usr"), exist_ok=True)
329329

330330
# Install program icon
331-
shutil.copyfile(os.path.join(PATH, "xdg", "openshot-qt.svg"),
332-
os.path.join(app_dir_path, "openshot-qt.svg"))
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"))
333333

334-
# Install .DirIcon AppImage icon (used on some distros such as Chrome OS)
334+
# Install .DirIcon AppImage icon
335335
# See: https://docs.appimage.org/reference/appdir.html
336-
shutil.copyfile(os.path.join(PATH, "xdg", "icon", "256", "openshot-qt.png"),
337-
os.path.join(app_dir_path, ".DirIcon"))
336+
# SVG icon not supported on Chrome OS (with AppImage desktop integration)
337+
# PNG is assumed with desktop integration
338+
shutil.copyfile(icon_256_png, os.path.join(app_dir_path, ".DirIcon"))
338339

339340
dest = os.path.join(app_dir_path, "usr", "share", "pixmaps")
340341
os.makedirs(dest, exist_ok=True)
341342

342-
shutil.copyfile(os.path.join(PATH, "xdg", "openshot-qt.svg"),
343-
os.path.join(dest, "openshot-qt.svg"))
343+
shutil.copyfile(icon_256_png, os.path.join(dest, "openshot-qt.png"))
344344

345345
# Install MIME handler
346346
dest = os.path.join(app_dir_path, "usr", "share", "mime", "packages")

0 commit comments

Comments
 (0)